ncurses_init_color()
ncurses_init_color - Define a terminal color
Syntax
int ncurses_init_color (
int $color,
int $r,
int $g,
int $b)
Arguments
- color - The identification number of the color to redefine. It may be one of the default color constants.
- r - A color value, between 0 and 1000, for the red component.
- g - A color value, between 0 and 1000, for the green component.
- b - A color value, between 0 and 1000, for the blue component.
Description
Defines or redefines the given color. When this function is called, all occurrences of the given color on the screen, if any, immediately change to the new definition.
Version
PHP 4.2.0, 5 < 5.3.0, PECL ncurses >= 1.0.0
Return value
Returns -1if the function was successful, and 0if ncurses or terminal color capabilities have not been initialized or the terminal does not have color changing capabilities.