Mastodon Feed: Post

Mastodon Feed

Boosted by adam@social.lol ("Adam Newbold"):
b0rk@jvns.ca ("Julia Evans") wrote:

how terminal colours work

[![1. program prints out an escape code ^[31m hello code for "print this text in red" (programs can also specify a hex colour like #a2a9ee, but that's less common, it's called "24 bit color") 2. terminal emulator looks up the colour in its table of 16 colours 3. terminal emulator displays the text in the colour! these are called the "ANSI colours" and you can configure them to be anything you want! It's in your terminal emulator's settings.]4