AnsiSurfaceBackend mixin

A partial implementation of SurfaceBackend that writes ANSI sequences.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size → (int, int)
Returns the terminal size in columns and rows.
no setterinherited
writer Writer
The writer used to write UTF-8 encoded ANSI escape sequences.
no setter

Methods

clear() → void
Clears the terminal screen.
override
draw(int x, int y, Cell cell) → void
Draws a cell at the given x and y position.
override
drawBatch(Iterable<Cell> cells, {Offset start = Offset.zero, int? width}) → void
Optimally draws a batch of cells at the given start position.
override
endSynchronizedUpdate() → void
Ends a synchronized update.
override
flush() Future<void>
Flushes any buffered content to the terminal screen.
override
hideCursor() → void
Hides the terminal cursor.
override
moveCursorTo(int x, int y) → void
Moves the terminal cursor to the given position.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showCursor() → void
Shows the terminal cursor.
override
startSynchronizedUpdate() → void
Starts a synchronized update.
override
toString() String
A string representation of this object.
inherited

Operators

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