ANSI Color Specific RGB Sequence Bash

Both answers here fail to mention the Truecolor ANSI support for 8bpc color. This will get the RGB color the OP originally asked for. Instead of ;5, use ;2, and specify the R, G, and B values (0-255) in the following three control segments. \x1b[38;2;40;177;249m To test if your terminal supports Truecolor: printf “\x1b[38;2;40;177;249mTRUECOLOR\x1b[0m\n” On … Read more