Function pancurses::init_pair [] [src]

pub fn init_pair(
    pair_index: i16,
    foreground_color: i16,
    background_color: i16
) -> i32

Changes the definition of a color-pair.

It takes three arguments: the number of the color-pair to be redefined, and the new values of the foreground and background colors. The pair number must be between 0 and COLOR_PAIRS - 1, inclusive. The foreground and background must be between 0 and COLORS() - 1, inclusive. If the color pair was previously initialized, the screen is refreshed, and all occurrences of that color-pair are changed to the new definition.