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.
Upstream references:
third_party/ultraviolet/styled.go(StyledString.Draw)third_party/ultraviolet/terminal_renderer.go(UvTerminalRenderer.Render)
- Implemented types
Constructors
- UltravioletTuiRenderer({required TuiTerminal terminal, TuiRendererOptions options = const TuiRendererOptions(), ({bool useBackspace, bool useTabs})? movementCapsOverride})
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})?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- terminal → TuiTerminal
-
final
Methods
-
clear(
) → void -
Clears the rendered content.
override
-
dispose(
) → void -
Disposes of renderer resources.
override
-
flush(
) → Future< void> -
Flushes any buffered output.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printLine(
String text) → void -
render(
Object view) → void -
Renders the view to the terminal.
override
-
renderImmediate(
String view) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited