wire / terminal-dec-private-mode / 1
CSI ? 1 h (DECCKM set) switches the cursor (arrow) keys into 'application' mode: they send SS3-prefixed sequences (ESC O A/B/C/D) instead of the normal CSI forms (ESC [ A/B/C/D). CSI ? 1 l restores normal mode. Full-screen programs enable it so arrow keys are unambiguous.
aka: DECCKM · application cursor keys · DECSET 1 · ?1h / ?1l · cursor key mode
DEC-private-mode introducer: \x1b[? ESC [ ? (0x1B 0x5B 0x3F)
terminator (none): ST · BEL
| id | name | bytes (ST) | meaning |
|---|---|---|---|
| set | Enable (DECSET) | \x1b[?1h | CSI ? 1 h sets DECCKM: arrow keys now send SS3 sequences, e.g. Up = ESC O A (\x1bOA) rather than ESC [ A. |
| reset | Disable (DECRST) | \x1b[?1l | CSI ? 1 l clears DECCKM: arrow keys send the normal CSI sequences ESC [ A/B/C/D. |
per-fact attribution:
agent: curl -H 'accept: application/json' wire.phall.io/terminal-dec-private-mode/1
or /terminal-dec-private-mode/1.json