Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: Determining color/black-white Message-ID: <8906231951.AA10339@expo.lcs.mit.edu> Date: 23 Jun 89 19:51:08 GMT References: <8906231926.AA12265@apple-gunkies.ai.mit.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: X Consortium, MIT Laboratory for Computer Science Lines: 19 > What is the best method of determining if a screen supports color or > not? Use XGetVisualInfo() to determine which visuals are available on the screen, then select a visual appropriate to your application. Also, check the colormap size fields of the visual types. Remember, a screen can have multiple visuals, and the default visual of a screen with color capability is not necessarily a visual with color capability. See section 10.8 of Scheifler, Gettys & Newman. See also "Visualizing X11 Clients", by David Lemke and David Rosenthal, published in the Usenix Winter 89 conference proceedings. Donna Converse converse@expo.lcs.mit.edu