note 62835 added to function.ncurses-init-pair

From: Date: Fri, 10 Mar 2006 14:34:58 +0000
Subject: note 62835 added to function.ncurses-init-pair
Groups: php.notes 
Request: Send a blank email to php-notes+get-105202@lists.php.net to get a copy of this message
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. ---- Server IP: 66.207.199.35 Probable Submitter: 216.220.37.88 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.ncurses-init-pair.php Edit -- http://master.php.net/note/edit/62835 Del: integrated -- http://master.php.net/note/delete/62835/integrated Del: useless -- http://master.php.net/note/delete/62835/useless Del: bad code -- http://master.php.net/note/delete/62835/bad+code Del: spam -- http://master.php.net/note/delete/62835/spam Del: non-english -- http://master.php.net/note/delete/62835/non-english Del: in docs -- http://master.php.net/note/delete/62835/in+docs Del: other reasons-- http://master.php.net/note/delete/62835 Reject -- http://master.php.net/note/reject/62835 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105202) next »