NCURSES_PAIR_CONTENT(3) 1 NCURSES_PAIR_CONTENT(3)
ncurses_pair_content - Retrieves foreground and background colors of a color pair
SYNOPSIS
int ncurses_pair_content (int $pair, int &$f, int &$b)
DESCRIPTION
Retrieves the foreground and background colors that constitute the given color pair. Terminal color capabilities must be initialized with
ncurses_start_color(3) prior to calling this function.
PARAMETERS
o $pair
- The number of the color pair to retrieve information for.
o $f
- A reference to which to return the foreground color of the color pair. The information returned will be a color number referring
to one of the pre-defined colors or a color defined previously by ncurses_init_color(3) if the terminal supports color changing.
o $b
- A reference to which to return the background color of the color pair. The information returned will be a color number referring
to one of the pre-defined colors or a color defined previously by ncurses_init_color(3) if the terminal supports color changing.
RETURN VALUES
Returns -1 if the function was successful, and 0 if ncurses or terminal color capabilities have not been initialized.
SEE ALSO
ncurses_init_pair(3), ncurses_start_color(3).
PHP Documentation Group NCURSES_PAIR_CONTENT(3)