Function ncursesw::init_pair [−][src]
pub fn init_pair(
color_pair: short_t,
colors: Colors
) -> Result<ColorPair, NCurseswError>
👎 Deprecated since 0.4.0:
Use normal::ColorPair::new() or shims::ncurses::init_pair() instead
Expand description
Change the definition of a color-pair. It takes two arguments: the number of the color-pair to be changed, and the foreground and background colors. The value of color_pair must be between 1 and COLOR_PAIRS - 1 (the 0 color pair is wired to white on black and cannot be changed). If the color-pair was previously initialized, the screen is refreshed and all occurrences of that color-pair are changed to the new definition.