Renderer class

A diff-based terminal renderer.

It maintains a front-buffer representing the last rendered state of the screen. When render is called with a new back-buffer, the renderer finds the differences and emits the minimal set of ANSI control sequences to update the display.

Constructors

Renderer(int width, int height, {RenderingMode mode = RenderingMode.alternateScreen})
Creates a renderer with an initial screen size.

Properties

frontBuffer → Buffer
Exposes the current front-buffer representing the screen state.
no setter
hashCode → int
The hash code for this object.
no setterinherited
mode → RenderingMode
The rendering mode used by this renderer. Determines whether output is rendered inline or to the alternate screen buffer.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Buffer backBuffer, StringSink out) → void
Diffs backBuffer against _frontBuffer and writes minimal ANSI escape sequences to out.
toString() → String
A string representation of this object.
inherited

Operators

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