EscapeParser class
EscapeParser translates control characters and escape sequences into function calls that the terminal can handle.
Design goals:
- Zero object allocation during processing.
- No internal state. Same input will always produce same output.
Constructors
- EscapeParser(EscapeHandler handler)
Properties
- handler → EscapeHandler
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenBegin ↔ int
-
Start of sequence or character being processed. Useful for debugging.
getter/setter pair
- tokenEnd → int
-
End of sequence or character being processed. Useful for debugging.
no setter
Methods
-
capturedToken(
) → String - Returns the raw text of the token currently being dispatched (from tokenBegin to tokenEnd), if it is still retained in memory. The result may be truncated when the token was split across multiple calls to write.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String chunk) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited