benilla-re systems structs docs

ConsoleCommandFontColor

function · console · primitive

Address
0x6393b0 · 490 bytes, up to 0x639599
Signature
uint32_t __fastcall (const char *name, const char *args)
Meaning
Sets the colour of a named class from three 0 to 255 channels and recolours its lines
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.

Callers 0

None by a direct call or jump.

Callees 6

Calls and jumps by a bare address, from tables/calls.tsv.