<p><pre><code> git commit -F <(curl https://raw.githubusercontent.com/thiderman/doge/master/doge/static/doge.txt) # [0]
</code></pre>
Oh god do I feel bad about this. What have I done?<p>[0] <a href="https://github.com/thiderman/doge" rel="nofollow">https://github.com/thiderman/doge</a>
Funny timing, with the recent "Terminal escape sequence XSS" post on oss-security in mind: <a href="http://www.openwall.com/lists/oss-security/2015/08/11/8" rel="nofollow">http://www.openwall.com/lists/oss-security/2015/08/11/8</a>
Regrettably (?), you can'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 "fun" for git logs.
iTerm2 supports images in the terminal. May as well take this as far as it will go.<p><a href="https://iterm2.com/images.html" rel="nofollow">https://iterm2.com/images.html</a><p>Edit: even animated gifs
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
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.
This is a really entertaining writing style: technical enlightenment through demonstration via humorous examples. For the lazy (and additional humorous demonstration), I wish he'd provided an example gif showing it in action (i.e., Github, terminal, Sourcetree, etc...).
Haha, what a coincidence. Just the other day we discussed string special cases[0][1], to which I contributed ansi escapes. Unicode "fonts" 𝓵𝓲𝓴𝓮 𝖙𝖍𝖎𝖘 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://news.ycombinator.com/item?id=10035008" rel="nofollow">https://news.ycombinator.com/item?id=10035008</a><p>[1] <a href="https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.txt" rel="nofollow">https://github.com/minimaxir/big-list-of-naughty-strings/blo...</a>
This works for me in OS X's built-in Terminal app, but not iTerm. Both report xterm-256color as $TERM, so I'm not sure what about iTerm is configured differently to prevent it from working there.
Who remembers when most of the blogs syndicating discussions about RSS all started blinking at once, when somebody posted an item whose title was "What happens when you put a <blink> tag into the title?"
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.