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... 
>>
>> Ah, now found a reference for the latter
>>
>> 38;5;33
>>
>> The 38 prefix apparently means to set the foreground colour,
>> but a 48 prefix apparently means to set the background colour.
>>
>> No idea how they're using the 5.
>>
>> The 33 is a colour, but I don't know how that's defined.
>>
>> Apparently, it's to do with xterm, so you might look into that.
>>
> 
> 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

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to