CLIM mail archive

[Prev][Next][Index][Thread]

detecting B&W monitor in Clim 1.1



    Date: Mon, 10 Jan 1994 16:04-0600
    From: Suzanne Paley <PALEY@ai.sri.com>

    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
display.

--David Gadbois


References:

Main Index | Thread Index