bug-ncurses
[Top][All Lists]
Advanced

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

Re: Issue using more than 255 color pairs


From: Bill Gray
Subject: Re: Issue using more than 255 color pairs
Date: Sat, 15 Jul 2023 15:37:54 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 7/15/23 11:31, Thomas Dickey wrote:
I don't see a previous message with either this title or author.
     #define COLOR_PAIR(n) n << 8

Neither did I. Original title was "Issue using more than 256 Colors in ncurses version 6.0.20170401" (note 256, not 255).

https://lists.gnu.org/archive/html/bug-ncurses/2017-04/msg00033.html

-- Bill
While that make some color pairs accessible, these are just the previously
initiated color pairs with an immutable A_REVERSE.

perhaps if you provided a complete test-program which demonstrates an
unwanted change, I could investigate that.
I checked that my distributions have built with --enable-widec, and that
NCURSES_WIDECHAR (or _XOPEN_SOURCE) is set before including curses.h.

Actually I figured out that the terminal color palette is usually 16 + 2
inclusive foreground and background.  The application uses bold for bright
on systems with less than 16 colors, so these color pairs are initiated
like regular colors.

--
David





reply via email to

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