TerminalViewportState
Host-facing snapshot of the terminal viewport's scrollback position.
0.0 means the live viewport, and larger values move farther back into history. In gutter and undecorated modes each scroll slot is a terminal row. Divider mode counts both text rows and one-cell-high prompt bands in presentation coordinates. Hosts that use top-origin scrollbars can invert this value in their adapter without changing terminal rendering policy.
After session closure, zero identifies the bottom of the retained presentation. The history size includes final grid rows hidden above a shorter component. These presentation coordinates do not change the session's grid or history.
Constructors
Properties
fixed terminal row height in pixels.
visual content height for the current render cache in pixels, or zero before the bound session publishes its first frame.
number of presentation slots available above the live viewport.
Whether the viewport is following live terminal output.
whole-row offset requested from the render cache. This is a terminal-native source offset; prompt bands do not occupy source rows.
number of rows requested from the render cache, including smooth-scroll overscan when required.
precise visual offset from the live viewport. Fractional values exist only during smooth animation between integer row destinations; completed viewports are row-aligned.
visual viewport height in pixels.
terminal grid capacity computed from component height and cell metrics, before prompt bands.
precise pixel offset from the live bottom.
maximum presentation pixel offset from the live bottom.