KetraTerm
API · v0.3.0All versions

TerminalViewportResizeResult

data class TerminalViewportResizeResult(val scrollbackOffset: Int, val historySize: Int, val discardedCount: Long)

Viewport anchor and history baseline captured atomically after terminal resize.

Reflow can replace the history storage and its discarded-row counter. Apply all three values together before interpreting later history changes as output.

Constructors

Link copied to clipboard
constructor(scrollbackOffset: Int, historySize: Int, discardedCount: Long)

Properties

Link copied to clipboard

discarded-row counter belonging to the resized history.

Link copied to clipboard

retained history rows after resize.

Link copied to clipboard

whole-row distance from the live viewport that preserves the pre-resize logical content where it survives; zero follows live output.