TerminalBackend class abstract
An abstract base class for native terminal backend implementations.
Provides methods to interact with the console, such as enabling raw mode, reading input, and querying the terminal size.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isWindows → bool
-
Whether the host platform is Windows.
no setter
-
rawInput
→ Stream<
List< int> > -
Stream of raw input bytes from the terminal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
size
→ Point<
int> -
Retrieves the current terminal size.
no setter
Methods
-
disableRawMode(
) → void - Restores terminal configuration.
-
dispose(
) → void - Cleans up resources.
-
enableRawMode(
) → void - Configures raw mode.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
watchSize(
) → Stream< Point< int> > - Watches terminal size changes.
-
write(
String data) → void - Writes output data back to the terminal.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited