First, I've searched the topics on google.com, but not help a lot.
I've configured my urxvt using some color themes, but it's really hurt my eyes. So, I decided to create my own using some Vim color pallete. I really need to know what's the meaning of color0 - color15 in urxvt .Xdefaults or .Xresources setting. What's the purpose of those colors? Anyone knows?
The purpose of those colors is to be colors.
Terminal emulators usually let you define the 16 "ASCII" colors:
Normal Bright
-------- -------
0 Black 8 Black
1 Red 9 Red
2 Yellow 10 Yellow
3 Green 11 Green
4 Blue 12 Blue
5 Magenta 13 Magenta
6 Cyan 14 Cyan
7 White 15 White
Where the "Normal" colors are usually darker and the "Bright" ones lighter.
As noted, there is no such thing as "ASCII" colors, no matter how many. "ANSI" colors also is problematic, since ANSI (referring to the defunct x3.64 standard) never specified 16 colors.
urxvt's color0-color15 resource names are inherited from rxvt's simulation of X resource settings. (X resources are usually managed by X Toolkit, which neither uses). urxvt's manual page considers these too well known to mention any details. rxvt would search for resource settings using both "XTerm" and "Rxvt" classnames, and in so doing incorporated several resource names from xterm. urxvt (which started as a translation of rxvt into C++) dropped that (searching for "XTerm") feature in 2004, but kept most of the other rxvt resource names.
Those names were defined in xterm (see manual), for these two ranges:
The second range is a different type of "extension": ISO-6429 does not define escape sequences which might correspond to those. Rather, xterm combines two features into one palette:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With