benilla-re systems structs docs

s_colourTable

global · console

Address
0xc4ead8 · 36 bytes, up to 0xc4eafb
Type
uint32_t[9]
Meaning
Holds the nine console colours by class: default, input, echo, error, warning, global, admin, highlight, background
Confidence
verified, proof one
Finding
console/screen#colour-classes

Finding: Colour classes in console: screen

A line's class indexes the colour table 0xc4ead8: 0 default, 1 input, 2 echo, 3 error, 4 warning, 5 global, 6 admin, 7 selection highlight, 8 background. The table starts as ffffffff for 0, 1, 5 and 6, ff808080 for echo, ffff0000 for error, ffffff00 for warning, 80ffffff for the highlight and c0000000 for the background. fontcolor <class> <r> <g> <b> sets a class's colour from 0 to 255 channels (alpha 0xff); bgcolor and highlightcolor take <a> <r> <g> <b> for classes 8 and 7.

The derivation is in the doc.