Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!paperboy!penge!dbrooks From: dbrooks@penge.osf.org (David Brooks) Newsgroups: comp.windows.x Subject: Re: Visuals and Xt Message-ID: <17624@paperboy.OSF.ORG> Date: 2 Jan 91 04:24:23 GMT References: <9101010748.AA28436@Larry.McRCIM.McGill.EDU> Sender: news@OSF.ORG Reply-To: dbrooks@osf.org (David Brooks) Organization: Open Software Foundation Lines: 26 mouse@larry.mcrcim.mcgill.EDU writes: >In the protocol, I find only one place where a mapping between small >integers and visual classes is listed. The mapping given there is > > 0 StaticGray (etc...) You'll also find it in /usr/include/X.h: /* Display classes used in opening the connection * Note that the statically allocated ones are even numbered and the * dynamically changeable ones are odd numbered */ #define StaticGray 0 #define GrayScale 1 #define StaticColor 2 #define PseudoColor 3 #define TrueColor 4 #define DirectColor 5 Admittedly, this still isn't much help in exporting the number to the "-cc" option of the server. -- David Brooks dbrooks@osf.org Systems Engineering, OSF uunet!osf.org!dbrooks In Memoriam: Chris Naughton, aged 16, killed by a drunk driver Dec 22, 1990