TerminalGridView class abstract
Read-only view of the terminal grid that the engine exposes to consumers.
Implemented by MirrorGrid; lets external code read cell content, cursor
state, mode flags, and listen for changes via the inherited Listenable
without being able to mutate the grid. The mutable apply /
initializeEmpty methods only exist on MirrorGrid, which is
package-internal — consumers should never touch them, and a read-only
reference is sufficient for everything in the public API (painter rebind,
hyperlink lookup, modeFlags / displayOffset gates).
- Implemented types
- Implementers
Constructors
Properties
- columns → int
-
no setter
- cursorBlinking → bool
-
no setter
- cursorCol → int
-
no setter
- cursorColor → int
-
Program-set cursor color (OSC 12), or 0xFF000000 (kCursorColorUnset) when
unset — in which case painters keep their inverse-video cursor.
no setter
- cursorRow → int
-
no setter
- cursorShape → int
-
no setter
- cursorVisible → bool
-
no setter
- displayOffset → int
-
no setter
- generation → int
-
Bumped on every grid mutation. Painters use this to short-circuit
shouldRepaint.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- modeFlags → int
-
no setter
- rows → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollFraction → double
-
Sub-cell scroll offset in [0.0, 1.0): how far the viewport is scrolled up
past a line boundary, in fractions of a cell height. The painter shifts
content down by
scrollFraction * cellHeightand fills the revealed top sliver with the overscan row (cellrow == -1). 0.0 on a line boundary.no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
inherited
-
bgAt(
int row, int col) → int -
codepointAt(
int row, int col) → int -
Cell accessors.
rowin0..rows-1reads the viewport;row == -1reads the overscan line (the row just above the viewport top) used to paint the scrollFraction sliver. Other negative rows are not valid. -
fgAt(
int row, int col) → int -
flagsAt(
int row, int col) → int -
hyperlinkIdAt(
int row, int col) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited