note 27900 rejected from function.ncurses-attron by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Tue, 24 Dec 2002 04:49:21 +0000 |
| Subject: | note 27900 rejected from function.ncurses-attron by jmcastagnetto | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-41243@lists.php.net to get a copy of this message | ||
The following are defined constants..
NCURSES_A_ALTCHARSET Alternate character set
NCURSES_A_BLINK Blinking
NCURSES_A_BOLD Extra bright or bold
NCURSES_A_DIM Half bright
NCURSES_A_INVIS Invisible
NCURSES_A_PROTECT Protected
NCURSES_A_REVERSE Reverse video
NCURSES_A_STANDOUT Best highlighting mode of the terminal
NCURSES_A_UNDERLINE Underlining
so as the following:
ncurses_attron(NCURSES_A_BOLD); // turn on
ncurses_addstr("Press ESC to exit"); // out put
ncurses_hline(NCURSES_ACS_DIAMOND,5);// other fun stuff
ncurses_attroff(NCURSES_A_BOLD); // turn off
Then I start looking around and see that for some reason they are creating functions to do this?
i.e.
ncurses_standout(); // in place of NCURSES_A_STANDOUT ???
and
ncurses_standend();
umm.. guys, this makes no sense to create functions for each of the attr's
Guess we will see once it is final.