^[control-codes live in libghostty-vt

Operating system commands

OSC 106 Special Color Modes

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.

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.