From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a63c305ffc73f56a X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-12 09:42:38 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!gatech!bloom-beacon.mit.edu!crl.dec.com!crl.dec.com!lead.zk3.dec.com!ddhill From: ddhill@mytoy.zk3.dec.com (Dave Hill) Newsgroups: comp.unix.osf.osf1 Subject: Re: rgb.txt Date: 12 Jan 1995 17:42:38 GMT Organization: Digital Equipment Corporation Message-ID: <3f3pme$tka@lead.zk3.dec.com> References: <3eh2hl$7a1@reseau.cict.fr> NNTP-Posting-Host: mytoy.zk3.dec.com In article <3eh2hl$7a1@reseau.cict.fr>, manu@ecstasy.cemes.fr (Emmanuel Courcelle) writes: |> Hello, evrybody. |> |> I would like to introduce a new color in the rgb database, on a Dec |> osf/1 2.0 machine. How do I do that ??? |> |> I already introduced the color in the rgb.txt file with an editor, but |> I do not know how to update the rgb.pag and rgb.dir files (all those |> files are under /usr/lib/X11). |> The rgb command is not normally installed. As distributed from the X Consortium, the installation procedures do not install the command. The rgb command is only used for compiling the rgb database when building the X window system. As of X11R5, the functionality of the rbg command has been superseded by the X Color Management System (Xcms). Instead of adding to the rgb database, one can either create a color definition file in /usr/lib/X11/Xcms.txt or one can use a personal color definition file defined in the value of the XCMSDB environment variable. The old (R4) color method of defining colors (a '#' followed by a hex number) can still be used, but there are many color-space formats recognized. Here is an example Xcms.txt data file: XCMS_COLORDB_START 0.1 mygreen RGBi:0.1/0.9/0.1 UglyGreen TekHVC:88.00004/72.66564/38.25869 myPurple #c01095 XCMS_COLORDB_END Note that you must use a tab character between the color name and the start of the color specification. Note that it is no longer necessary to compile the color data file in any way. Simply the existance of the /usr/lib/X11/Xcms.txt file or the file referred to in the XCMSDB environment variable is sufficient. For more information on Xcms, refer to Chapter 6 the "X Window System Administrator's Guide" published by O'Reilly & Associates, Inc. and distributed with the DEC OSF/1 documentation.