read_non_blocking

Function read_non_blocking 

Source
pub fn read_non_blocking() -> Option<Event>
Expand description

Get an Event, without blocking. When raw mode is disabled, the input will only be registered after enter is pressed. Call enable_raw_mode() at the beginning of the program to avoid having to press enter