Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 6,505 posts.

Tools & Productivity
Any year
4482

ANSI escape codes (2019)

My team writes a lot of command line tools, and we like to assume that people aren’t using a literal VT100 (meaning: we liberally use colours, italics, and basically every other terminal feature available to us). This tends to result in strings in our code that look a little like this: