bug-ncurses
[Top][All Lists]
Advanced

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

Re: how can I use more then 8 colors ?


From: Thomas Dickey
Subject: Re: how can I use more then 8 colors ?
Date: Mon, 1 Jul 2002 16:16:53 -0400
User-agent: Mutt/1.2.5i

On Mon, Jul 01, 2002 at 01:35:37PM -0700, Robert Doering wrote:
> nice day,
> 
> ... for example light-yellow .

It depends on your perspective.  Some people, observing that a few terminals
treat some attributes such as bold make colors brighter, declare that's
a general (sic) principle and simply equate the two.

Terminfo provides the ability to describe terminals with more than 8 colors
e.g., XFree86 xterm:

xterm-16color|xterm with 16 colors,
        colors#16,
        ncv#32,
        pairs#256,
        setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm,
        setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm,
        
setb=%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
        
setf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
        use=xterm-xfree86,

ncurses can use that (it allows up to 16 colors, where other implementations
only go to 8).  But it depends on the type of terminal.  For instance rxvt
2.7.x recognizes these escapes, but it doesn't work very well.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]