[−][src]Function bear_lib_terminal::terminal::read_event
pub fn read_event() -> Option<Event>
Returns the next event in the queue if it's available, otherwise returns None
.
If one intends on waiting for events, the wait_event()
function is recommended.
This is equivalent to the behaviour mentioned in the
docs for the terminal_read()
C API function, but not the function's behaviour itself.