Function ncursesw::COLOR_PAIR[][src]

pub fn COLOR_PAIR(color_pair: ColorPair) -> attr_t
Expand description

Extracts the raw color pair attribute value of a color pair

Example

let colors1 = Colors::new(Color::Red, Color::Black);
let color_pair1 = ColorPair::new(colors1)?;

assert!(COLOR_PAIR(color_pair1) > 0);