CLIM mail archive


really quick question about changing text color

   Date: Tue, 24 Nov 92 09:51:10 PST
   From: Curt Eggemeyer <>

   If you wish to output regular text with format on one of your
   application panes, do you just change the +foreground+ value to a color
   to change that text's color ala something like:

   (let ((old-color +foreground+))
     (unwind-protect (progn (setf +foreground+ +red+)
			    (format pane-stream "hi"))
	   (setf +foreground+ old-color)))

   Or is there a specific foreground attribute for each pane within your
   application pane that I should set?

[I don't remember seeing an answer to this go by]

You can use something like:

(with-drawing-options (win :ink +red+)
  (format win "foo")
  (force-output win))



Main Index | Thread Index