has_colors - indicate whether terminal supports colours
#include <curses.h> bool has_colors(void);
Refer to can_change_color().