[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect value in COLOR_PAIRS?
From: |
Thomas Dickey |
Subject: |
Re: Incorrect value in COLOR_PAIRS? |
Date: |
Sun, 20 Jan 2019 14:14:56 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Sun, Jan 20, 2019 at 02:25:17PM +0300, Hudd wrote:
> I get '65536' when I check the COLOR_PAIRS value, however in reality there
> are only 32767 usable color pairs.
>
> mvprintw(1,1,"COLOR_PAIRS: %d; COLORS: %d;",COLOR_PAIRS,COLORS); // prints
> "COLOR_PAIRS: 65536; COLORS: 256;"
>
> init_extended_pair(32766, COLOR_BLUE, COLOR_BLACK); // OK
> init_extended_pair(32767, COLOR_CYAN, COLOR_BLACK); // == ERR
thanks (I see the problem, will fix)
--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: Digital signature