[−][src]Function winconsole::console::get_background_color
pub fn get_background_color() -> WinResult<ConsoleColor>
Returns the current background color of the console.
Examples
let background = console::get_background_color().unwrap(); println!("Background color: {}", background);
Errors
InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.