CUP—Cursor Position

This control function moves the cursor to the specified line and column. The starting point for lines and columns depends on the setting of origin mode (DECOM). CUP applies only to the current page.

Format

CSI
9/11
Pl
3/n
;
3/11
Pc
3/n
H
4/8

Parameters

Pl
is the number of the line to move to. If Pl is 0 or 1, then the cursor moves to line 1.

Pc
is the number of the column to move to. If Pc is 0 or 1, then the cursor moves to column 1.