wire / terminal-csi / cup
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).
aka: CUP · HVP · cursor position · CSI H · ESC [ H · goto xy
CSI introducer: \x1b[ ESC [ (0x1B 0x5B)
terminator (none): ST · BEL
| id | name | bytes (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. |
per-fact attribution:
agent: curl -H 'accept: application/json' wire.phall.io/terminal-csi/cup
or /terminal-csi/cup.json