TerminalBackend class abstract interface

Low-level I/O backend for a terminal host.

Backends own raw bytes, input streams, resize/shutdown notifications, and raw-mode lifecycle. High-level terminal semantics such as alt-screen, cursor visibility, mouse escape sequences, and OSC title/color handling stay in BackendTerminal.

Implementers

Properties

colorProfile ColorProfile
The color capability profile of the target surface.
no setter
hashCode int
The hash code for this object.
no setterinherited
inputStream Stream<List<int>>?
Stream of raw input bytes, if the backend accepts input.
no setter
isRawMode bool
Whether raw mode is currently enabled.
no setter
isTerminal bool
Whether the backend is connected to a real terminal-like surface.
no setter
resizeStream Stream<TerminalDimensions>?
Stream of terminal resize events, if the backend can emit them.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shutdownStream Stream<void>?
Stream of shutdown/interrupt events, if the backend can emit them.
no setter
size TerminalDimensions
Current terminal dimensions.
no setter
supportsAnsi bool
Whether the backend can interpret ANSI escape sequences.
no setter

Methods

disableRawMode() → void
Disables raw input mode.
dispose() → void
Disposes backend resources.
enableRawMode() RawModeGuard
Enables raw input mode.
flush() Future<void>
Flushes any buffered backend output.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optimizeMovements() → ({bool useBackspace, bool useTabs})
Host-specific movement optimization hints.
toString() String
A string representation of this object.
inherited
writeRaw(String data) → void
Writes raw terminal data immediately.

Operators

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