TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Blinking Commits

340 pointsby gurramanalmost 10 years ago

29 comments

svckralmost 10 years ago
<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 未加载
0x0almost 10 years ago
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 未加载
creshalalmost 10 years ago
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 未加载
jamesdsadleralmost 10 years ago
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 未加载
rurounijonesalmost 10 years ago
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 未加载
tempodoxalmost 10 years ago
Has nothing to do with git, or committing, it just applies VT100 control codes that work anywhere in a compatible terminal.
评论 #10059771 未加载
评论 #10059827 未加载
thom_nicalmost 10 years ago
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.
caternalmost 10 years ago
To insert a literal character (like the Escape entered in this post) in Emacs, use C-q.
GuiAalmost 10 years ago
Of course, you can also use other escape codes to make your commits colored (e.g. [92m for green), underlined ([4m), etc.
评论 #10059637 未加载
Cthulhu_almost 10 years ago
So, 1990&#x27;s Geocities commits are now a thing again? ^[[5m#UNDER CONSTRUCTION^[[0m
nichocharalmost 10 years ago
The writing style is clever and funny. You should keep writing!
dlssalmost 10 years ago
I think this post just changed my position on censorship :p
cousin_italmost 10 years ago
Will it still work if I omit the closing bracket? Or put it in a different commit message, further down the page?
eldudealmost 10 years ago
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 未加载
brillenfuxalmost 10 years ago
In the world of ANSI escape codes and terminal emulators things are never that easy.<p>Works for OS X apparently.
im3w1lalmost 10 years ago
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 未加载
Perceptesalmost 10 years ago
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 未加载
rmcalmost 10 years ago
I wonder if GitHub do&#x2F;will support this and parse it to HTML
评论 #10059192 未加载
评论 #10059152 未加载
评论 #10059583 未加载
erikbalmost 10 years ago
Doesn&#x27;t work in my gnome-terminal. Looks like the commands get escaped by git somehow. Did anybody test it?
评论 #10059689 未加载
DonHopkinsalmost 10 years ago
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_againalmost 10 years ago
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 未加载
forgotmypasswalmost 10 years ago
First emojis, now blinking text, this has to stop.
belgianguyalmost 10 years ago
Can you turn it off? I&#x27;d imagine a big project (e.g. Linux Kernel) could start to look like a Christmas tree...
ins0almost 10 years ago
ok now i need a spam filter for git log - everything is flashing like &quot;look at my nice changes here!&quot; :)
评论 #10059115 未加载
imauldalmost 10 years ago
You were more concerned with whether or not you could you never stopped to think whether or not you should
评论 #10064174 未加载
craniumalmost 10 years ago
After the emoji, the blinking... Will git commits become like the 2000s web? :p
评论 #10059277 未加载
zamalekalmost 10 years ago
We just need a marquee now.
评论 #10060061 未加载
meyalmost 10 years ago
All this talk about ASCII control codes and no one mentions 0x07 aka ␇?
tibbonalmost 10 years ago
Surely, there is a way to do this in Sublime?
评论 #10060273 未加载