[−][src]Function winconsole::console::set_input_mode
pub fn set_input_mode(settings: InputSettings) -> WinResult<()>
Sets settings related to console input.
Arguments
settings
- Settings to assign to the console input.
Examples
let mut mode = console::get_input_mode().unwrap(); mode.InsertMode = true; console::set_input_mode(mode).unwrap();
Errors
ArgumentError
: Returned ifsettings.LineInput
is disabled whilesettings.EchoInput
is enabled.InvalidHandleError
: Returned if an invalid handle to the console input is retrieved or used.IoError
: Returned if an OS error occurs.