[][src]Function winconsole::console::set_foreground_color

pub fn set_foreground_color(color: ConsoleColor) -> WinResult<()>

Sets the foreground color of the console.

Arguments

Examples

console::set_foreground_color(ConsoleColor::Red).unwrap();

Errors