wire / terminal-dec-private-mode / 6

DECSET 6 — DECOM (origin mode)

CSI ? 6 h (DECOM set) makes cursor addressing relative to the scroll region (DECSTBM): row 1 becomes the top margin and the cursor cannot leave the region. CSI ? 6 l restores absolute (screen-relative) addressing. Setting or resetting DECOM also homes the cursor.

terminal-dec-private-mode kind control-sequence status standard verification verified tier B terminal-escape@1

aka: DECOM · origin mode · DECSET 6 · ?6h / ?6l · relative origin

frame

DEC-private-mode introducer: \x1b[? ESC [ ? (0x1B 0x5B 0x3F)

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
set Enable (DECSET) \x1b[?6h CSI ? 6 h sets DECOM: CUP/HVP coordinates become relative to the top margin of the scroll region, and the cursor is confined within the region. The cursor moves to the region's home.
reset Disable (DECRST) \x1b[?6l CSI ? 6 l clears DECOM: addressing is absolute to the physical screen; the cursor moves to screen home.

gotchas


provenance

per-fact attribution:

see also

agent: curl -H 'accept: application/json' wire.phall.io/terminal-dec-private-mode/6 or /terminal-dec-private-mode/6.json