KeyParser class

Parses raw terminal input bytes into Key objects and Msg objects.

This class handles the complexity of ANSI escape sequences, control characters, multi-byte UTF-8 characters, and mouse events.

Constructors

KeyParser()

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

clear() → void
Clears any buffered input.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(List<int> bytes) List<Key>
Parses a list of input bytes into Key objects.
parseAll(List<int> bytes) List<ParseResult>
Parses input bytes and returns all results (keys and messages).
toString() String
A string representation of this object.
inherited

Operators

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

Constants

escapeTimeout → const Duration
Timeout duration for escape sequences.