wire / terminal-osc / 5

OSC 5 — Special color (xterm)

OSC 5 sets a special color (xterm extension): OSC 5 ; c ; spec ST sets special color index c.

terminal-osc kind control-sequence status de-facto verification verified tier B terminal-escape@1

aka: OSC 5 · OSC 5 — Special color (xterm)

frame

OSC introducer: \x1b] ESC ] (0x1B 0x5D)

terminator (ST|BEL): ST \x1b\ · BEL \x07

parameters / subcommands

idnamebytes (ST)meaning
set Set special color \x1b]5;0;#ff0000\x1b\ OSC 5 ; c ; spec ST sets special color index c.

gotchas


provenance

agent: curl -H 'accept: application/json' wire.phall.io/terminal-osc/5 or /terminal-osc/5.json