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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Blinking Commits

340 点作者 gurraman将近 10 年前

29 条评论

svckr将近 10 年前
<p><pre><code> git commit -F &lt;(curl https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;thiderman&#x2F;doge&#x2F;master&#x2F;doge&#x2F;static&#x2F;doge.txt) # [0] </code></pre> Oh god do I feel bad about this. What have I done?<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;thiderman&#x2F;doge" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thiderman&#x2F;doge</a>
评论 #10061342 未加载
0x0将近 10 年前
Funny timing, with the recent &quot;Terminal escape sequence XSS&quot; post on oss-security in mind: <a href="http:&#x2F;&#x2F;www.openwall.com&#x2F;lists&#x2F;oss-security&#x2F;2015&#x2F;08&#x2F;11&#x2F;8" rel="nofollow">http:&#x2F;&#x2F;www.openwall.com&#x2F;lists&#x2F;oss-security&#x2F;2015&#x2F;08&#x2F;11&#x2F;8</a>
评论 #10063541 未加载
creshal将近 10 年前
Regrettably (?), you can&#x27;t use this to implement marquee.<p>But you can make your text black with a black background. Or re-order lines, which I suspect to be &quot;fun&quot; for git logs.
评论 #10061001 未加载
评论 #10059549 未加载
jamesdsadler将近 10 年前
iTerm2 supports images in the terminal. May as well take this as far as it will go.<p><a href="https:&#x2F;&#x2F;iterm2.com&#x2F;images.html" rel="nofollow">https:&#x2F;&#x2F;iterm2.com&#x2F;images.html</a><p>Edit: even animated gifs
评论 #10059214 未加载
rurounijones将近 10 年前
I actually quite like the idea of control codes in commit messages for internal teams where you can implement rules.<p>It could be useful for highlighting risky commits in red or other visual markers.<p>Would play merry hell with almost every other way of viewing commits though :D
评论 #10063281 未加载
tempodox将近 10 年前
Has nothing to do with git, or committing, it just applies VT100 control codes that work anywhere in a compatible terminal.
评论 #10059771 未加载
评论 #10059827 未加载
thom_nic将近 10 年前
Anyone know if an issue has been opened (or any relevant discussion on the dev list) on stripping escape sequences? It <i>does</i> seem like it could be harmful.
catern将近 10 年前
To insert a literal character (like the Escape entered in this post) in Emacs, use C-q.
GuiA将近 10 年前
Of course, you can also use other escape codes to make your commits colored (e.g. [92m for green), underlined ([4m), etc.
评论 #10059637 未加载
Cthulhu_将近 10 年前
So, 1990&#x27;s Geocities commits are now a thing again? ^[[5m#UNDER CONSTRUCTION^[[0m
nichochar将近 10 年前
The writing style is clever and funny. You should keep writing!
dlss将近 10 年前
I think this post just changed my position on censorship :p
cousin_it将近 10 年前
Will it still work if I omit the closing bracket? Or put it in a different commit message, further down the page?
eldude将近 10 年前
This is a really entertaining writing style: technical enlightenment through demonstration via humorous examples. For the lazy (and additional humorous demonstration), I wish he&#x27;d provided an example gif showing it in action (i.e., Github, terminal, Sourcetree, etc...).
评论 #10060200 未加载
评论 #10060286 未加载
brillenfux将近 10 年前
In the world of ANSI escape codes and terminal emulators things are never that easy.<p>Works for OS X apparently.
im3w1l将近 10 年前
Haha, what a coincidence. Just the other day we discussed string special cases[0][1], to which I contributed ansi escapes. Unicode &quot;fonts&quot; 𝓵𝓲𝓴𝓮 𝖙𝖍𝖎𝖘 seem to work in commit messages as well.<p>I think this is quite harmful, especially the character movement ansi escapes could be used for nefarious purposes.<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10035008" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10035008</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;minimaxir&#x2F;big-list-of-naughty-strings&#x2F;blob&#x2F;master&#x2F;blns.txt" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;minimaxir&#x2F;big-list-of-naughty-strings&#x2F;blo...</a>
评论 #10059992 未加载
评论 #10059612 未加载
评论 #10059252 未加载
Perceptes将近 10 年前
This works for me in OS X&#x27;s built-in Terminal app, but not iTerm. Both report xterm-256color as $TERM, so I&#x27;m not sure what about iTerm is configured differently to prevent it from working there.
评论 #10059697 未加载
评论 #10059658 未加载
rmc将近 10 年前
I wonder if GitHub do&#x2F;will support this and parse it to HTML
评论 #10059192 未加载
评论 #10059152 未加载
评论 #10059583 未加载
erikb将近 10 年前
Doesn&#x27;t work in my gnome-terminal. Looks like the commands get escaped by git somehow. Did anybody test it?
评论 #10059689 未加载
DonHopkins将近 10 年前
Who remembers when most of the blogs syndicating discussions about RSS all started blinking at once, when somebody posted an item whose title was &quot;What happens when you put a &lt;blink&gt; tag into the title?&quot;
madaxe_again将近 10 年前
Every time I use a control character, my mind strays back to CHR$141.<p>Although I do wonder what havoc you could wreak on hosted git services with cunning sequences of control characters. Smacks of injection.
评论 #10065543 未加载
forgotmypassw将近 10 年前
First emojis, now blinking text, this has to stop.
belgianguy将近 10 年前
Can you turn it off? I&#x27;d imagine a big project (e.g. Linux Kernel) could start to look like a Christmas tree...
ins0将近 10 年前
ok now i need a spam filter for git log - everything is flashing like &quot;look at my nice changes here!&quot; :)
评论 #10059115 未加载
imauld将近 10 年前
You were more concerned with whether or not you could you never stopped to think whether or not you should
评论 #10064174 未加载
cranium将近 10 年前
After the emoji, the blinking... Will git commits become like the 2000s web? :p
评论 #10059277 未加载
zamalek将近 10 年前
We just need a marquee now.
评论 #10060061 未加载
mey将近 10 年前
All this talk about ASCII control codes and no one mentions 0x07 aka ␇?
tibbon将近 10 年前
Surely, there is a way to do this in Sublime?
评论 #10060273 未加载