[][src]Function winconsole::console::get_color_mapping

pub fn get_color_mapping() -> WinResult<[RGB8; 16]>

Returns the current color mapping for the console. The indices of the returned array correspond with ConsoleColor values.

Examples

let mapping = console::get_color_mapping().unwrap();
let black = mapping[0];
println!("{:?}", black);

Errors