Path: utzoo!attcan!uunet!husc6!bloom-beacon!SUN.COM!dshr From: dshr@SUN.COM (David Rosenthal) Newsgroups: comp.windows.x Subject: Re: CLX question Message-ID: <8807222234.AA00405@devnull.sun.com> Date: 22 Jul 88 20:27:14 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 10 > In CLX, how does one determine whether a screen is monochrome or color? > The trick I've seen used in Xlib is to check how many colors the default > colormap will hold, but I can't find the equivalent accessor in CLX. Or > is there some other test that is preferred? Test is wrong. You need to check the DefaultVisual(dpy,scr)->class to see if it is {Pseudo,Direct,True}Color. This is the only way to find out if the image you display is in color. David.