Re: ssh colors vs. bash colors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux