NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/44109: curses does not support full colour



The following reply was made to PR lib/44109; it has been noted by GNATS.

From: Brett Lymn <blymn%baea.com.au@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: lib-bug-people%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost, 
netbsd-bugs%NetBSD.org@localhost
Subject: Re: lib/44109: curses does not support full colour
Date: Thu, 18 Nov 2010 22:52:29 +1030

 On Thu, Nov 18, 2010 at 06:10:00AM +0000, dholland%eecs.harvard.edu@localhost 
wrote:
 > 
 > Curses does not let you use arbitrary RGB colors. 
 
 man can_change_color
 man init_color
 
 say different.  Though looking at the curses source, init_color has
 not been implemented yet.
 
 >The color support is
 > limited to the first 8 of the 16 DOS console colors from ANSI.SYS. As
 > most of these colors are ugly (particularly in combinations) this
 > makes it more or less impossible to take advantage of color in
 > text-based user interfaces.
 > 
 
 By default those colours are set up in curses but they are not the
 only ones that can be used.  The maximum number of colours available
 is a terminal dependent number (terminfo attribute max_colors) as is
 the number of colour pairs (terminfo attribute max_pairs).
 
 -- 
 Brett Lymn
 "Warning:
 The information contained in this email and any attached files is
 confidential to BAE Systems Australia. If you are not the intended
 recipient, any use, disclosure or copying of this email or any
 attachments is expressly prohibited.  If you have received this email
 in error, please notify us immediately. VIRUS: Every care has been
 taken to ensure this email and its attachments are virus free,
 however, any loss or damage incurred in using this email is not the
 sender's responsibility.  It is your responsibility to ensure virus
 checks are completed before installing any data sent in this email to
 your computer."
 
 


Home | Main Index | Thread Index | Old Index