Skip to content

Save/restore cursor (DECSC)

Category: cursor · Tags: DEC Private Modes, VT100 · Specification ↗

DECSC saves the cursor position and attributes; DECRC restores them. Save: ESC 7. Restore: ESC 8. Also available as CSI variants: ESC [ s (save) and ESC [ u (restore). The saved state includes cursor position, character attributes, character set, and origin mode. Applications use this to temporarily move the cursor for status updates without disrupting the main content area.

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