wire / terminal-osc / 104

OSC 104 — Reset color palette entry

OSC 104 ; c ST resets palette color number c back to its built-in default. With no parameter (OSC 104 ST), it resets the ENTIRE palette to defaults. The inverse of OSC 4 (which sets palette colors).

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

aka: reset color palette · reset ANSI colors · OSC 104 · ESC ] 104

frame

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

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

parameters / subcommands

idnamebytes (ST)meaning
reset-one Reset one color \x1b]104;1\x1b\ OSC 104 ; c ST resets palette index c (0–255) to its default value (the X resource / built-in default). Multiple indices may be given separated by ';'.
reset-all Reset all colors \x1b]104\x1b\ OSC 104 ST with NO parameter resets the entire color palette to defaults at once.

gotchas


provenance

per-fact attribution:

see also

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