TerminalBackend class abstract

Abstract interface for terminal rendering backends.

Implementations translate buffer operations into terminal-specific output. AnsiBackend is the default implementation for ANSI terminals.

Implementers

Constructors

TerminalBackend()

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

clear() → void
Clear the entire terminal display.
clearRegion(ClearType type) → void
draw(Iterable<CellUpdate> updates) → void
Write cell updates to the terminal display.
flush() → void
Flush any buffered output to the terminal.
getCursorPosition() Position
hideCursor() → void
Hide the terminal cursor.
keyEvents() Stream<KeyEvent>
Stream of keyboard events from terminal input.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resizeEvents() Stream<Size>
Stream of terminal resize events.
setAlternateScreen(bool enabled) → void
Switch to or from the terminal alternate screen buffer.
setCursorPosition(Position pos) → void
setRawMode(bool enabled) → void
Enable or disable raw input mode (line buffering, echo).
showCursor() → void
Show the terminal cursor.
size() Size
toString() String
A string representation of this object.
inherited

Operators

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