Skip to content

Cursor position (CUP)

Category: cursor · Tags: ECMA-48 Standard, VT100 · Specification ↗

CUP (Cursor Position) moves the cursor to an absolute row and column. The sequence is ESC [ row ; col H, where row and column are 1-based. ESC [ H (no parameters) moves to the home position (1,1). This is the most fundamental cursor positioning command and is used by every full-screen TUI application.

Supported by 6 of 6 backends (100%)

Support Matrix

BackendVersionSupportNotes
Alacritty0.26.0✓ yes
Ghostty1.3.1✓ yes
Kitty0.40.0✓ yes
vt1000.1.0✓ yes
WezTerm0.1.0-fork.5✓ yes
xterm.js5.5.0✓ yes

Powered by Termless
Playwright for Terminals