A state-machine-based parser for terminal input bytes.
Converts raw bytes from standard input into high-level Event objects. Handles multibyte ANSI escape sequences for special keys and modifiers.
Whether there are any bytes currently in the buffer that could form an event.
Feeds raw bytes into the internal parser buffer.
Attempts to parse the next event from the internal buffer.