You are not logged in.

#1 2013-01-27 22:03:22

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

[Solved] What is supplying rgb.txt color names?

Solution: They are compiled in.

When I apply a color using a color alias from the deprecated 'rgb.txt' list, it works!  Perhaps two years ago, when Arch stopped including the file '/usr/share/X11/rgb.txt', the names stopped working.  Now I find the names do work, but there is no 'rgb.txt' file under '/usr/share/X11'.

For example, these commands work:

$ xterm -bg SteelBlue &
$ xclock -bg "light sea green"

Why do they now work?  What file is supplying the color aliases?  My '/usr/lib/X11/Xcms.txt' is still the default:

XCMS_COLORDB_START 0.1
cms red                 CIEXYZ:0.3811/0.2073/0.0213
cms green               CIEXYZ:0.3203/0.6805/0.1430
cms blue                CIEXYZ:0.2483/0.1122/1.2417
XCMS_COLORDB_END

I can find no 'rgb.txt' except for '/usr/share/emacs/24.2/etc/rgb.txt' and '/usr/share/vim/vim73/rgb.txt'.  They can be removed and the old color names still work.  Color me puzzled.

Last edited by thisoldman (2013-01-27 22:36:53)

Offline

#2 2013-01-27 22:21:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,532
Website

Re: [Solved] What is supplying rgb.txt color names?

They are compiled into X itself.  Run `strings /usr/bin/X` and grep for colors - there all in there.

example:

$ strings /usr/bin/X | grep Steel
LightSteelBlue
LightSteelBlue1
LightSteelBlue2
LightSteelBlue3
LightSteelBlue4
SteelBlue
SteelBlue1
SteelBlue2
SteelBlue3
SteelBlue4

Last edited by Trilby (2013-01-27 22:24:18)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2013-01-27 22:37:19

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [Solved] What is supplying rgb.txt color names?

Thank you.

Edit—The compiled in color names:

$ strings /usr/bin/Xorg | grep -A 749 alice

Last edited by thisoldman (2013-01-28 04:08:21)

Offline

Board footer

Powered by FluxBB