read_event

Function read_event 

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

Read the next input event from the terminal interface.

ยงErrors

Errors if the Tui cannot read an event for any reason. In general this should not error, and if this does generate an error, the Tui should be considered to be in a non-recoverable state.