ncurses_color_set()
ncurses_color_set - Set active foreground and background colors
Syntax
int ncurses_color_set (
int $pair)
Arguments
- pair - The color pair from which to get the foreground and background colors to set as the active colors.
Description
Sets the active foreground and background colors. Any characters written after this function is invoked will have these colors. This function requires terminal colors to be supported and initialized using ncurses_start_color() beforehand.
Version
PHP 4.0.7, 5 < 5.3.0, PECL ncurses >= 1.0.0
Return value
Returns -1on success, and 0on failure.