[−][src]Function winconsole::input::start
pub fn start() -> WinResult<InputContext>
Creates and returns an InputContext, and initialises input.
Examples
let mut ctx = input::start().unwrap(); let event = ctx.wait().unwrap(); println!("{}", event);
Errors
InvalidHandleError
: Returned if an invalid handle to the console input is retrieved or used.IoError
: Returned if an OS error occurs.