Skip to main content

read_event

Function read_event 

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

Read the next terminal event.

Blocks until an event is available. Returns the event wrapped in Result to handle potential I/O errors.