wire / terminal-dec-private-mode / 1002

DECSET 1002 — Button-event mouse tracking

CSI ? 1002 h enables button-event mouse tracking: the terminal reports button press, release, and motion while a button is held. CSI ? 1002 l disables it.

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

aka: DECSET 1002 · DECRST 1002 · ?1002

frame

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

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
set Enable (DECSET) \x1b[?1002h CSI ? 1002 h Mouse tracking; button events + motion while pressed.
reset Disable (DECRST) \x1b[?1002l CSI ? 1002 l disables the mode.

gotchas


provenance

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