Colour Console Messages

Xash3D

Colour Console Messages

Xash3D supports console message colouring, which was first introduced in Quake 3. This system understands colour tags made up of ^ and a digit from 0 to 7, where the digit denotes a predefined colour.

Number Colour
0     black
1     red
2     green
3     yellow
4     blue
5     cyan
6     purple
7     white

This colour table is fully compatible with Quake 3 and works the same way: the line is coloured up to the end or up to the control tag ^7, which resets the colour. The system also works in the menu and can be used for colouring player nicknames.

Note: To enable colouring in vgui, set the vgui_colorstrings console variable to 1.