[Top][All Lists]

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

Incorrect value in COLOR_PAIRS?

From: Hudd
Subject: Incorrect value in COLOR_PAIRS?
Date: Sun, 20 Jan 2019 14:25:17 +0300

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

reply via email to

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