wire / terminal-dec-private-mode / 6
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.
aka: DECOM · origin mode · DECSET 6 · ?6h / ?6l · relative origin
DEC-private-mode introducer: \x1b[? ESC [ ? (0x1B 0x5B 0x3F)
terminator (none): ST · BEL
| id | name | bytes (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. |
per-fact attribution:
agent: curl -H 'accept: application/json' wire.phall.io/terminal-dec-private-mode/6
or /terminal-dec-private-mode/6.json