Terminal Guide

Reverse Display Colors (DECSCNM)

?5
urxvt
xterm
vte
konsole
linuxvc

Reverses the foreground and background colors of some cells.

Exact behavior is implementation specific.

urxvt ( ✓ )

🛈 Swaps default (unnamed) background and foreground colors when rendering.

xterm ( ✓ )

🛈 Swaps default (unnamed) background and foreground colors when rendering. 🛈 If the cursor color matches the foreground color, it is changed to what is about to be used as the rendered foreground color. This change is observable via change/read cursor color. 🛈 Swaps mouse pointer inlet and mask colors when rendering. 🛈 Swaps selection background and foreground colors. This change is observable via selection background color and change/read selection foreground color. Then also Swaps selection background and foreground colors when rendering. (so the rendered colors stay the same, but the sequences swap their meaning) 🛈 Swaps scrollbar background and foreground colors when rendering. 🛈 Swaps colors with indices 0 and 7 as well as 8 and 15. The palette color swaps are observable via change/read palette color.

vte ( ✓ )

🛈 Swaps default (unnamed) background and foreground colors when rendering.

konsole ( ✓ )

🛈 Swaps background and foreground when rendering.

linuxvc ( ✓ )

🛆 brightness is not swapped.