Terminal Guide

Linux Palette Set

ESC1B ]5D P50 data
urxvt
xterm
vte
konsole
linuxvc
other
This sequence violates terminal parsing rules. Avoid implementing or using this sequence when possible.

Change the palette.

data is string of 7 hex digits. The first digit is the color number to change, and the rest are RRGGBB.

xterm ( ∅ )

🛈 beeps, but does not confuse the parser in default configuration.

linuxvc ( ✓ )

🛆 When using the fbcon driver the reset palette only applies to cells drawn after this sequence.

other ( )

iterm2: properly uses ESC \ to terminate the sequence, adds additional supported colors, recommends to use (used by other terminals) instead.