[][src]Function winconsole::console::set_output_mode

pub fn set_output_mode(settings: OutputSettings) -> WinResult<()>

Sets settings related to console output.

Arguments

Examples

let mut mode = console::get_output_mode().unwrap();
mode.WrapAtEol = false;
mode.DisableNewlineAutoReturn = true;
console::set_output_mode(mode).unwrap();

Errors