New

The latest blog posts to take off on Hacker News. 80,999 posts.

Any topic
Any year
35320

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: