TerminalViewportState
Host-facing snapshot of the terminal viewport's scrollback position.
The reusable Swing component uses terminal-native scrollback coordinates: 0.0 means the live viewport, and larger values move farther back into scrollback history. Hosts that use top-origin scrollbars can invert this value in their adapter without changing terminal rendering policy.
Constructors
Properties
fixed terminal row height in pixels.
visual content height for the current render cache in pixels.
number of rows available above the live viewport.
Whether the viewport is following live terminal output.
whole-row offset requested from the render cache. This is the integer overscan anchor for scrollbackOffset.
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.
number of terminal rows that fit in the component.
precise pixel offset from the live bottom.
maximum row-native pixel offset from the live bottom.