COLOR_PAIRS, COLORS - external variables for colour support
#include <curses.h> extern int COLOR_PAIRS; extern int COLORS;
Refer to can_change_color().