php man page for ncurses_pair_content

Query: ncurses_pair_content

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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)
Related Man Pages
default_colors(3x) - redhat
use_default_colors(3x) - redhat
can_change_color(3) - netbsd
color_content(3) - netbsd
ncurses_color_set(3) - php
Similar Topics in the Unix Linux Community
Reverse Display
Terminal colors
Enabling color for putty session
Change color on another terminal
How to change the background color in the init 3 mode(not line color)