Reset Palette Colors (OSC 104)

Reset colors in the palette.

  1. 0x1B
    ESC
  2. 0x5D
    ]
  3. 0x31 0x30 0x34
    104
  4. 0x3B
    ;
  5. ____
    n
  6. 0x1B
    ESC
  7. 0x5C
    \

Reset the color in the palette at index n. n can be specified zero or more times, separated with semicolons (;) When n is not specified, the entire palette is reset.

When n is between 0 and 255, the normal 256-color palette is used. When n is above 255, however, they instead map to special colors, with 256 mapping to the first special color (bold), 257 the second (underline), etc. This makes it behave equivalently to OSC 105 with the index subtracted by 256.