AnsiBackend class

ANSI terminal backend implementation.

Supports SGR styling, cursor movement, raw mode, alternate screen, keyboard input parsing, and SIGWINCH resize detection.

Implemented types

Constructors

AnsiBackend({IOSink? out, Stream<List<int>>? input})

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

Operators

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