On Sun, Jan 31, 2016 at 01:59:58PM +0100, Dennis Jacobfeuerborn wrote:
On 31.01.2016 07:40, Jon LaBadie wrote:
On Sun, Jan 31, 2016 at 02:21:04PM +1030, Tim wrote:
Allegedly, on or about 29 January 2016, Dennis Jacobfeuerborn sent:
Now I only need to figure out what exactly "di=01;34" vs. "di=38;5;33" means...
...
The "3" of 38 is setaf, the 8 is the first part of the color specification. This 3 number combo is used only on terminals capable of more than the standard 8, typically 256 colors.
I think the "5" seems to be constant, perhaps meaning a color beyond the std 8 and the 33 completes the color specification.
I found two good references one for the codes themselves and one for all the color codes: https://en.wikipedia.org/wiki/ANSI_escape_code http://misc.flogisoft.com/bash/tip_colors_and_formatting
38 sets the extended foreground color which can be followed by either: 5:n where n is the color index in a standard 256 color palette or 2;r;g;b to set rgb colors from a 24 bit palette.
Regards, Dennis
Thanks for correcting my guesswork.
Jon