TerminalGrid class
The grid that fits a terminal viewport at its current font metrics.
Always represents a usable terminal: cols ≥ minCols, rows ≥ minRows. Constructed by ViewportResolver (always at least minCols×minRows).
- Annotations
Constructors
- TerminalGrid(int cols, int rows)
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
Constants
- minCols → const int
- Smallest grid a human can use. Below this the viewport is in a layout transition (sidebar animation, worktree switch, zero-width tab frame). Pushing a smaller grid to the PTY would force every TUI to reflow to infinitesimal dimensions and then back — the visible "jump."
- minHeightPx → const double
- minRows → const int
- minWidthPx → const double
- Pixel floor for the available paint area, mirroring orca's MIN_PANE_FIT_WIDTH_PX (48) / MIN_PANE_FIT_HEIGHT_PX (24). With tiny fonts a container can satisfy the 8×4 cell floor while still being a near-zero transition frame; this catches that case too (double guard, pixels + cells).