David Haley
Wizard


Group: Members
Posts: 5,727
Joined: Jun 30, 2007
|
#76 Posted Feb 16, 2009, 1:15 pm
|
At this point I think the best thing to do, if this really is an issue for you, is to figure out what exactly is going on regarding the interaction between ls, terminfo, termcap, etc. We don't know if ls is the one keeping separate configuration files, we don't know if the library operates by saying "give me the color red", etc.
|
|
|
|
|
|
|
quixadhal
Wizard


Group: Members
Posts: 1,256
Joined: Oct 17, 2007
|
#79 Posted Mar 2, 2009, 4:19 am
|
Just to tendorize the dead horse so it makes better glue....
Here are a pair of screenshots showing my investigation into a mismatch between the ANSI sequence values (as seen in Putty) and the xterm sequence values (also as seen in Putty).
vs.
The first one assumes the RGB values for the plain ANSI values and the extended xterm values use the same 6 points from 0 to 255.... namely, 0x00,0x55,0x88,0xBB,0xDD,0xFF.
The second sets the RGB values for the plain ANSI codes to be 0x00,0x55,0x88,0xBB,0xDD,0xFF, but uses the xterm documentation values for the xterm extended values of 0x00,0x5F,0x87,0xAF,0xD7,0xFF.
This appears to be correct, since if you examine the solid backgrounds of the text at the bottom, you'll see the yellows and reds are not quite the same.
Obviously, the actual colors show will be what they will be, regardless of anything else... but it does affect what the "nearest match" code selects, as you can see. Does anyone care? Probably not.
Which one looks better? Hmmm, you decide. :)
|
......................... 
|
|
|
|