CLIM mail archive


Re: detecting B&W monitor in Clim 1.1

   Date: Mon, 10 Jan 1994 16:22-0600
   From: David Gadbois <>

       Date: Mon, 10 Jan 1994 16:04-0600
       From: Suzanne Paley <>

       I saw a recent message about detecting whether or not a monitor can
       display color in CLIM 2.0.  I was wondering if the same thing could
       be done in CLIM 1.1, and how.

   (defun color-stream-p (stream)
     #+CLIM-2 (clim:palette-color-p (clim:port-default-palette (clim:port stream)))
     #-CLIM-2 (and (slot-boundp stream 'clim::color-p)
		   (slot-value stream 'clim::color-p)))

   Not sure how to do it before one actually creates a stream to the

   --David Gadbois

In 1.1 there is already an internal CLIM function in called COLOR-STREAM-P.


 Amy Winarske               Lucid, Inc.    707 Laurel Street       
 Lisp Technical Support                    Menlo Park, CA 94025  USA                        Tel: 415-329-8400 x5524                    FAX: 415-329-8480       

Main Index | Thread Index