Re: new "named colors"
From: giacomo boffi (giacomo.boffi_at_polimi.it)
Date: 07/14/05
- Previous message: William Park: "Re: (patch for Bash) GTK+2 + Bash"
- In reply to: J.O. Aho: "Re: new "named colors""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 14 Jul 2005 16:03:56 +0200
"J.O. Aho" <user@example.net> writes:
> giacomo boffi wrote:
> > i'd like to do something like:
> > # addcolortoX -display :0 -name rustyleaves -color \#B3863E
> > # xterm -fg white -bg rustyleaves &
> > i.e., adding a new (name . value) to the named colors database of a
> > running X server
> > 1) is it technically possible?
> > 2) eventually, have you a reference?
>
> You have the /usr/lib/X11/rgb.txt which is a plain text file, just add
> your own color to the list, just remeber that the values are in INT
> DEC from 0 to 255.
afaict, X reads rgb.txt at startup, period. after that, the X server
has in memory a database of names-pixel pairs, that's _fixed_ with
regard to changes to rgb.txt (until you restart X)
what i'd like to do is different: i want to _modify_ the named colors
database of a _running_ X
thank you for your reply,
gb
-- Come si fa a discutere della bontà di un editor del genere se non si parla di quanto pulito faccia il codice? -- Zefram, in ING
- Previous message: William Park: "Re: (patch for Bash) GTK+2 + Bash"
- In reply to: J.O. Aho: "Re: new "named colors""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|