BottomRegionRenderer class
Renders and updates a block of text lines anchored at the bottom of the terminal, without taking over the full screen.
The renderer only ever writes to and clears the lines it owns, so any output above the rendered region (e.g. previous command output) is left untouched. It relies on ANSI cursor-movement escape codes, which are supported by modern Windows consoles as well as macOS and Linux terminals.
Constructors
- BottomRegionRenderer(InlineTerminal _terminal)
-
Creates a renderer that writes to
terminal.
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 - Clears the rendered region entirely, leaving the cursor at the region start and restoring cursor visibility.
-
finish(
{List< String> ? lines}) → void -
Finishes rendering by optionally drawing a final set of
lines, then moving the cursor below the region and restoring the cursor visibility. -
finishClearingLastLine(
) → void - Finishes by clearing only the last rendered line, preserving the lines above it and leaving the cursor at the start of the cleared line.
-
hideCursor(
) → void - Hides the terminal cursor while the region is interactive.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
List< String> lines) → void -
Draws
lines, replacing any previously rendered region in place. -
showCursor(
) → void - Shows the terminal cursor again.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited