[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue using more than 255 color pairs
From: |
Thomas Dickey |
Subject: |
Re: Issue using more than 255 color pairs |
Date: |
Sat, 15 Jul 2023 12:57:48 -0400 |
On Sat, Jul 15, 2023 at 03:37:54PM -0400, Bill Gray wrote:
> 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
hmm - that might be related (different title, different author).
but a test-program is missing in either case
> -- 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
> > >
> >
>
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature
- Re: Issue using more than 255 color pairs, David Unterwandling, 2023/07/15
- Re: Issue using more than 255 color pairs, David Unterwandling, 2023/07/15
- Re: Issue using more than 255 color pairs, Thomas Dickey, 2023/07/15
- Re: Issue using more than 255 color pairs, Thomas Dickey, 2023/07/16
- Re: Issue using more than 255 color pairs, David Unterwandling, 2023/07/16
- Re: Issue using more than 255 color pairs, Thomas Dickey, 2023/07/16
- Re: Issue using more than 255 color pairs, David Unterwandling, 2023/07/17
- Re: Issue using more than 255 color pairs, David Unterwandling, 2023/07/17
- Re: Issue using more than 255 color pairs, Bill Gray, 2023/07/16
- Re: Issue using more than 255 color pairs, Thomas Dickey, 2023/07/16
- Re: Issue using more than 255 color pairs, Dennis Clarke, 2023/07/16