TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

If you less this txt file, your terminal plays a sound

8 点作者 phoenixreader超过 2 年前

10 条评论

XMPPwocky超过 2 年前
That&#x27;s nothing- run `curl <a href="https:&#x2F;&#x2F;xmppwocky.net&#x2F;curlme.txt" rel="nofollow">https:&#x2F;&#x2F;xmppwocky.net&#x2F;curlme.txt</a>` on, say, OS X Terminal.app (and a lot of Linux terminal emulators, too) and your terminal window will do things like steal focus, maximize and minimize repeatedly, move around the screen...<p>(don&#x27;t do this on a terminal you care about! on some older versions of OS X, this would hard-lock the entire UI (for all apps, requiring a reboot or something!), but these days it&#x27;s sufficient to force-quit Terminal)<p>There&#x27;s some wacky stuff out there: <a href="https:&#x2F;&#x2F;www.xfree86.org&#x2F;current&#x2F;ctlseqs.html" rel="nofollow">https:&#x2F;&#x2F;www.xfree86.org&#x2F;current&#x2F;ctlseqs.html</a>
评论 #34888171 未加载
pwg超过 2 年前
&gt; If you less this txt file, your terminal plays a sound<p>Actually, no it does not. My less displays the bell characters as ^G instead of showing them as raw.<p>Whether you hear the bell, or simply see ^G, depends upon how you have less configured. I leave mine configured to use the caret notation for control characters (which for my version of less, is also the default).
surteen超过 2 年前
This is Hacker News? A file with ^G in it makes the terminal play a sound?
评论 #34887791 未加载
评论 #34888367 未加载
hsbauauvhabzb超过 2 年前
I’ve always been curious if mangling stdout or stderr can trigger bad actions, when cat-ing a binary file I occasionally see control characters on my prompt, could I get it to somehow type ‘rm -rf &#x2F;‘?
评论 #34887716 未加载
评论 #34887657 未加载
评论 #34887724 未加载
评论 #34887641 未加载
ignite超过 2 年前
That&#x27;s because it has the beep character, which is non-visible, on lines 3 through 7<p>The beep character is control-g, ASCII 0x07
junon超过 2 年前
Person learns about the bell character, more at eleven.
mtmail超过 2 年前
I&#x27;m guessing it contains <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Bell_character" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Bell_character</a> ?
mdmglr超过 2 年前
A good reminder to practice good opsec to be weary of packages that instruct you to `curl &lt;url&gt; | bash`. You never know what you&#x27;re running.
评论 #34889896 未加载
jdeaton超过 2 年前
Jokes on you my volume is off.
chomp超过 2 年前
0x07 = Bell