KeyEventReader class

Synchronous key event reader for raw terminal input.

Wraps TerminalContext.input.readByteSync, interprets multi-byte escape sequences, and emits normalized KeyEvent instances. Works in tandem with TerminalControl.enterRaw / TerminalModeState so prompts can switch in and out of raw mode safely.

Constructors

KeyEventReader()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

read() KeyEvent
Reads the next key event from stdin.