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