wire / terminal-csi / cup

CSI CUP / HVP — Cursor Position

CUP (final byte 'H') moves the cursor to row Pl, column Pc: CSI Pl ; Pc H. Both default to 1 when omitted, so 'CSI H' homes the cursor to the top-left. HVP (final byte 'f', CSI Pl ; Pc f) is the format-effector twin with identical effect in practice. Coordinates are 1-based and clamped to the screen (DEC origin mode shifts the addressable region to the scroll region).

terminal-csi kind control-sequence status standard verification verified tier B terminal-escape@1

aka: CUP · HVP · cursor position · CSI H · ESC [ H · goto xy

frame

CSI introducer: \x1b[ ESC [ (0x1B 0x5B)

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
cup CUP — Cursor Position (H) \x1b[5;10H CSI Pl ; Pc H moves the cursor to line Pl, column Pc (1-based). Omitted params default to 1; 'CSI H' homes to the top-left.
hvp HVP — Horizontal & Vertical Position (f) \x1b[5;10f CSI Pl ; Pc f is the format-effector twin of CUP; identical effect in essentially all terminals.

gotchas


provenance

per-fact attribution:

see also

agent: curl -H 'accept: application/json' wire.phall.io/terminal-csi/cup or /terminal-csi/cup.json