wire / terminal-dec-private-mode / 2031

DECSET 2031 — Color scheme updates (dark/light)

CSI ? 2031 h asks the terminal to send OSC 21 (color scheme change) notifications when the system switches between dark and light mode. CSI ? 2031 l disables them.

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

aka: DECSET 2031 · DECRST 2031 · ?2031

frame

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

terminator (none): ST · BEL

parameters / subcommands

idnamebytes (ST)meaning
set Enable (DECSET) \x1b[?2031h CSI ? 2031 h Color scheme change notifications.
reset Disable (DECRST) \x1b[?2031l CSI ? 2031 l disables the mode.

gotchas


provenance

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