TerminalViewportController class
Owns the resize lifecycle for one TerminalView pane.
apply runs synchronously inside LayoutBuilder: engine + mirror resize
immediately when the cell grid changes; onPtyResize fires after the engine
flush unless a beginPtyHold bracket is active (sidebar animation).
Constructors
- TerminalViewportController({required TerminalEngine engine, ViewportResolver? resolver, void onPtyResize(int cols, int rows)?, TerminalViewport? initialViewport})
Properties
- committed ↔ TerminalViewport?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
apply(
ViewportQuery query, {double devicePixelRatio = 1.0}) → TerminalViewport -
Measures
query, synchronously resizes the engine when the grid changes, and returns the committed viewport. -
beginPtyHold(
) → void -
Suppress
onPtyResizewhile the host animates chrome. Engine/mirror still track the live viewport; call endPtyHold to flush one SIGWINCH. -
dispose(
) → void -
endPtyHold(
{bool flush = true}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateHostPtyResize(
void cb(int cols, int rows)?) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited