note 62835 deleted from function.ncurses-init-pair by keito

From: Date: Mon, 06 Apr 2009 23:27:01 +0000
Subject: note 62835 deleted from function.ncurses-init-pair by keito
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152876@lists.php.net to get a copy of this message
Note Submitter: keith dot nunn at xe dot com ---- Creates a reference to a pair of colors that can then be called to change the appearance of an element of the ncurses display. The guaranteed available colors are defined as constants. See the beginning of the Ncurses section. This is only of use if your terminal is color-enabled. See ncurses_has_colors() and ncurses_start_color(). the new display color for a character is set using ncurses_color_set(); E.g. ncurses_start_color(); ncurses_init_pair(1,NCURSES_COLOR_RED,NCURSES_COLOR_BLACK); ncurses_color_set(1); // turn the new color pair on. // display what you want colored with this pair ncurses_color_set(0); // return to the default color pair. The default color pair (0) cannot be redefined.

« previous php.notes (#152876) next »