AnsiReader class abstract
A synchronous reader that matches and parses ANSI escape codes.
This class could be useful to implement a temrinal emulator or debugger.
Upon invoking the read method, any matching/understood ANSI escape codes are handled. For the default implementation AnsiReader.new, the cooresponding method on AnsiListener is invoked.
- Annotations
-
- @immutable
- @sealed
Constructors
- AnsiReader(AnsiListener listener)
-
Creates a reader that, upon parsing output, invokes
listener
.constfactory
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
-
read(
String text) → void -
Reads
text
, parsing ANSI escape codes along the way. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited