InlineTerminal class abstract interface

Abstraction over the terminal used by the inline TUI components.

This indirection keeps the components testable: production code uses StdioTerminal, while tests can supply a fake implementation that records output and feeds synthetic input.

Implementers

Properties

columns int
The current width of the terminal in columns, or a sensible default when the width cannot be determined.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasTerminal bool
Whether the process is attached to an interactive terminal (both input and output).
no setter
input Stream<List<int>>
Raw input bytes from the terminal.
no setter
interruptSignals Stream<void>
Emits an event when the user requests an interrupt (Ctrl+C / SIGINT).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsColor bool
Whether the terminal supports ANSI color escape codes.
no setter

Methods

disableRawMode() → void
Restores the terminal modes that were active before enableRawMode.
dispose() Future<void>
Releases any resources held by the terminal.
enableRawMode() → void
Switches the terminal into raw mode, disabling line buffering and echo so individual key presses can be read immediately.
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 text) → void
Writes text to the terminal without adding a trailing newline.

Operators

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