wire / terminal-dec-private-mode / 1040

DECSET 1040 — Alternate scroll mode

CSI ? 1040 h enables alternate scroll mode: when on the alternate screen, scroll events are sent as arrow keys instead of being handled by the terminal. CSI ? 1040 l disables it.

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

aka: DECSET 1040 · DECRST 1040 · ?1040

frame

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

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
set Enable (DECSET) \x1b[?1040h CSI ? 1040 h Alternate screen; scroll as arrow keys.
reset Disable (DECRST) \x1b[?1040l CSI ? 1040 l disables the mode.

gotchas


provenance

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