backgroundIndex property

int backgroundIndex

Returns the ANSI index for the background color.

Implementation

int get backgroundIndex => isBright ? index - 8 + 100 : index + 40;