[−][src]Function winconsole::console::set_output_mode
pub fn set_output_mode(settings: OutputSettings) -> WinResult<()>
Sets settings related to console output.
Arguments
settings
- Settings to assign to the console output.
Examples
let mut mode = console::get_output_mode().unwrap(); mode.WrapAtEol = false; mode.DisableNewlineAutoReturn = true; console::set_output_mode(mode).unwrap();
Errors
InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.