Lisp HUG Maillist Archive

Setting CAPI foreground color to maroon - strange display

Hello lispworkers,

I am trying to display text in color :maroon on LWW 4.4 in 256-color screen
mode. But capi:output-pane and capi:title-pane with the same

    :foreground :maroon

looks rather differently to me. Please evaluate the following:

(capi:define-interface test-maroon () ()
 (:panes
  (output capi:output-pane
   :visible-min-height '(:character 2)
   :background 'win32:color_3dface
   :foreground :maroon
   :display-callback
     (lambda (pane x y w h)
       (gp:draw-string pane "Color is maroon" 5 20)))
  (title capi:title-pane
   :foreground :maroon
   :text "Color is maroon"))
 (:layouts
  (main capi:column-layout '(output title)))
 (:default-initargs
  :best-width 300
  :title "Which is the real maroon?"))

(capi:display (make-instance 'test-maroon))
--
Sincerely,
Dmitriy Ivanov
lisp.ystok.ru


Re: Setting CAPI foreground color to maroon - strange display

Unable to parse email body. Email id is 6407

Updated at: 2020-12-10 08:46 UTC