pub fn read_event() -> Result<Event>
Read the next terminal event.
Blocks until an event is available. Returns the event wrapped in Result to handle potential I/O errors.