positionCursor

abstract fun positionCursor(col: Int, row: Int)

Moves the cursor to an absolute position (CUP / HVP, CSI row ; col H).

When DECOM is active, row is relative to the top of the scroll region and clamped within it. When DECOM is inactive, row is absolute in the viewport.

Column handling depends on DECLRMM:

  • with DECLRMM off, col is absolute in the viewport

  • with DECLRMM on and DECOM off, col is absolute but clamped to the active horizontal margins

  • with both DECLRMM and DECOM on, col is relative to the left margin

Parameters

col

Target column (0-based).

row

Target row (0-based).