wire / terminal-dec-private-mode / 1039

DECSET 1039 — Send ESC when Alt modifies a key (alternative)

CSI ? 1039 h is an alternative to 1036 for Alt key handling. CSI ? 1039 l disables it.

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

aka: DECSET 1039 · DECRST 1039 · ?1039

frame

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

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
set Enable (DECSET) \x1b[?1039h CSI ? 1039 h Alt sends ESC prefix (alternative)
reset Disable (DECRST) \x1b[?1039l CSI ? 1039 l disables the mode.

gotchas


provenance

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