[−][src]Function winconsole::console::set_background_color
pub fn set_background_color(color: ConsoleColor) -> WinResult<()>
Sets the background color of the console.
Arguments
color
- The color which will be assigned to the background.
Examples
console::set_background_color(ConsoleColor::DarkBlue).unwrap();
Errors
InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.