Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
curses_color, has_colors, can_change_color, start_color, init_pair, pair_content, COLOR_PAIR, PAIR_NUMBER, init_color, color_content, no_color_attributes — curses color manipulation routinesLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>has_colors(void);
can_change_color(void);
start_color(void);
init_pair(short pair, short fore, short back);
pair_content(short pair, short *fore, short *back);
COLOR_PAIR(int n);
PAIR_NUMBER(int val);
init_color(short color, short red, short green, short blue);
color_content(short color, short *red, short *green, short *blue);
no_color_attributes(void);
DESCRIPTION
These functions manipulate color on terminals that support color attributes.- COLOR_BLACK
- COLOR_RED
- COLOR_GREEN
- COLOR_YELLOW
- COLOR_BLUE
- COLOR_MAGENTA
- COLOR_CYAN
- COLOR_WHITE
will display characters using color-pair 2.attrset(COLOR_PAIR(2))