bug-ncurses
[Top][All Lists]
Advanced

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

Re: COLORS and COLOR_PAIRS


From: Thomas Dickey
Subject: Re: COLORS and COLOR_PAIRS
Date: Sun, 16 Oct 2005 13:01:13 -0400 (EDT)

On Sun, 16 Oct 2005, Michael D. Adams wrote:

You can make a custom terminfo that sets the pairs value to whatever you
want (though more than 17*17 would be not very useful).

That should work.  Thank you!  I am curious though why you said 17
instead of 9.  Are there other COLOR_* constants than the main 8?

I was thinking about the maximum number of colors in ncurses 5.4,
which is 4 bits worth (16 colors), e.g., xterm-16color

ANSI (now ISO) define only 8 colors, but a few terminals can display more than that.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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