Function ncursesw::COLORS [−][src]
pub fn COLORS() -> i32
Expand description
Return the number of colors available.
This is initialized by start_color
to the maximum number of colors the terminal can support.
Example
extern crate ncursesw;
use ncursesw::*;
start_color()?;
let number_of_colors = COLORS();
assert!(number_of_colors > 0);