ncurses_init_pair

(PHP 4 >= 4.0.7, PHP 5 < 5.3.0, PECL ncurses >= 1.0.0)

ncurses_init_pair — Define a color pair

Description

intncurses_init_pair
( int$pair
, int$fg
, int$bg
)

Defines or redefines the given color pair to have the given foreground
and background colors. If the color pair was previously initialized,
the screen is refreshed and all occurrences of it are changed to reflect
the new definition.

Return Values

Returns -1 if the function was successful, and
0 if ncurses or color support were not initialized.

Notes

Note that color changing capabilities are not required for
defining color pairs of pre-existing colors, but only for changing
definitions (red, green, and blue components)
of colors themselves per ncurses_init_color().