1
1
On gnu.org site there is GNU Head that can be display on terminal it have XTerm compatible (Normal documented ANSI Codes) but it also contain TTY version (it work on Cygwin, didn't test in XTerm or real terminal).
It contain text like:
]Pf767676[1;37mâ]Pf9e9e9e[1;37mâ]P7bcbcbc[47m]Pfeeeeee[1;37mâ]
it have \x1b
then ]Pf767676
and then normal [1;37m
which is documented for instance on wikipedia. What is ]Pf767676
and where it's documented?
So in
]Pf767676[1;37m
f (15th) change 46 Cyan background (counting from 30) to #767676 or it set color to pick with that 37? – jcubic – 2013-07-22T12:07:56.387@jcubic: In the Linux console, you directly deal only with an 8-color palette, 0–7 mapping to codes
30
–37
. The other 8 colors are actually used for "bold" versions of the same codes; i.e.1
+30
will select the 8th color instead of 0th. Similarly,1;37
selects the 15th color. (There exist sequences for a true 16-color palette, but they aren't widely supported, and usually not in terminals that allow modifying the palette at all.) – user1686 – 2013-07-22T13:16:18.633