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