^[control-codes
live in libghostty-vt

Operating system commands

OSC 106 Special Color Modes

View as Markdown

The same as OSC 6: turn xterm's special colors on and off.

OSC 106 ; Pc ; Pf ST
ECMA-48
§8.3.89 OSC – Operating System Command, p. 51
xterm
Operating System Commands

OSC 106 ; Pc ; Pf ST is the same as OSC 6: it turns xterm’s use of special color Pc on or off. Its number looks like a reset, as 104, 105 and 110 to 119 are, but it is not one: xterm sends 6 and 106 to the same code (do_osc).

libghostty-vt ignores it, as it does OSC 6, and a case cannot tell that apart from xterm.

Support

TerminalVersionSupportNotes
VT220manual, 2nd ed., 1984NoOSC is not among the controls it recognizes (§4.2)
VT510manual, 1st ed., 1993Noignores an OSC string (chapter 4)
xtermpatch 412, xterm-411aYesthe same code as OSC 6
libghostty-vt0f171f6Noignored
Konsole26.11.70, a24c3d71No
ConEmubuild 230724, its documentationNonot in ConEmu’s list, ANSI escape codes

Validation

OSC106-1: Nothing on screen, nothing answered

A
\e]106;0;0;1;1\a  # bold off, underline on
B
|AB____|
cursor 1,3
reply none
Every example on these pages runs in your browser, in libghostty-vt compiled to WebAssembly.