Function ncursesw::COLOR_PAIRS[][src]

pub fn COLOR_PAIRS() -> i32
Expand description

Return the number of color pairs available.

This is initialized by start_color to the maximum number of color pairs the terminal can support.

Example

extern crate ncursesw;

use ncursesw::*;

start_color()?;

let number_of_color_pairs = COLOR_PAIRS();

assert!(number_of_color_pairs > 0);