Query or Change Dynamic Colors (OSC 110–119)

Query or change dynamic colors based on their indices.

  1. 0x1B
    ESC
  2. 0x5D
    ]
  3. ____
    n
  4. 0x1B
    ESC
  5. 0x5C
    \

When n is between 110 and 119 inclusive, reset the dynamic color corresponding to n.

The correspondence between n and the dynamic colors are as follows:

nColor
110Foreground color
111Background color
112Cursor color
113Pointer foreground color
114Pointer background color
115Tektronix foreground color
116Tektronix background color
117Highlight background color
118Tektronix cursor color
119Highlight foreground color

Note

Currently, Ghostty only supports n between 110 and 112 inclusive. All other dynamic colors are ignored.

Note

xterm allows a trailing semicolon (;) to come after n.