UltravioletTuiRenderer class
Ultraviolet-inspired renderer backed by a cell buffer + diffing updates.
This renderer keeps Model.view(): String as the public API, but internally
parses ANSI-styled strings into a cell buffer and diffs frames to emit
minimal terminal updates.
In full-screen mode this writes UV output directly to the terminal. In inline mode it captures UV output first, rewrites absolute row-addressing escape sequences into the configured inline region, and then restores the surrounding CLI cursor position.
Upstream references:
- Implemented types
Constructors
- UltravioletTuiRenderer({required TuiTerminal terminal, TuiRendererOptions options = const TuiRendererOptions(), ({bool useBackspace, bool useTabs})? movementCapsOverride})
-
Creates a UV renderer targeting the given
terminal.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- metrics → RenderMetrics?
-
Returns the render metrics from the underlying UV renderer.
no setteroverride
- movementCapsOverride → ({bool useBackspace, bool useTabs})?
-
Optional override for terminal movement capabilities.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenBuffer → ScreenBuffer?
-
The current screen buffer, populated after each render/flush cycle.
no setter
- terminal → TuiTerminal
-
The terminal to render to.
final
Methods
-
captureNativeCellDelta(
) → TerminalNativeCellDeltaFrame? - Captures the renderer's most recent changed-cell delta, if available.
-
captureNativeDelta(
) → TerminalNativeDeltaFrame? - Captures the renderer's most recent dirty-line delta, if available.
-
captureNativeFrame(
) → TerminalNativeFrame? - Captures the renderer's current native frame, if available.
-
clear(
) → void -
Clears the rendered content.
override
-
dispose(
) → void -
Disposes of renderer resources.
override
-
flush(
) → Future< void> -
Flushes any buffered output.
override
-
initialize(
) → void -
Initializes terminal state needed before the first render.
override
-
invalidate(
) → void -
Resets internal diff / cache state so the next render call produces
a full redraw, without performing any terminal I/O.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printLine(
String text) → void -
Appends
textas persistent log line(s) above the rendered view. -
render(
Object view) → void -
Renders the view to the terminal.
override
-
renderImmediate(
String view) → void -
Renders
viewimmediately, bypassing frame-rate limiting. -
setNativeFrameCaptureEnabled(
bool enabled) → void - Enables native frame capture during subsequent render flushes.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited