TLDR: What is the theory behind terminal colors?
I have a fixed value of LS_COLORS in numbers:
I wonder what causes gnome-terminal, urxvt and yakuake to show perceptibly different colors for the same file type? The difference ranges from very similar (and yet clearly different) to drastically different- brown vs yellow.
Similarly, there are differences in how vim color shows up, I see very different colors in all three terminals. Both when t_Co=8 (vim supporting 8 colors) and t_Co=256(vim supporting 256 colors).
What's worse is that when I copy .XResources from internet which has english names for colors, the same colorscheme in vim shows much different colors. (I think I can attribute this to the use of names in vimscheme, and color redefintion by .Xresources)
Could someone help me with understanding the theory behind how terminal color works? A link would work great. If someone's feeling extra generous- maybe they can give tips too to ensure that I always have a standard environment, specially in the context of vim?
I should note that on yakuake, my color theme is: "Linux theme" (which seems to be only standard theme) and on gnome-terminal I have no theme. When I check the 'user system colors' option, the colors are even more disastrous, and the output itself is mangled (e.g. vanilla
ls showing each file on a different line). For urxvt, the only color related fields I have defined in .Xresources and
xrdb -q yields are:
Urxvt.background: #000000 Urxvt.foreground: #FFFFFF
Ok so some screenshots to explain what I'm talking about (first is on yakuake, second on urxvt)
The difference is clearly major...
Using: http://www.vim.org/scripts/script.php?script_id=1349 (first is yakuake, second on urxvt)