The _COLOR_BRIGHT flag should be separated into _COLOR_FGBRIGHT and _COLOR_BGBRIGHT to allow accessing the upper 8 colors in ANSI mode. Particularly this allows access to bright and bold colors.
The output coding currently as:
|
result += colorstring[(29 + (_value & _COLOR_FG))]; |
would then be changed to:
result += colorstring[((_value & _COLOR_FGBRIGHT ? 89 : 29) + (_value & _COLOR_FG))];
Currently it's possible to trick the existing code into giving bright and bold colors by requesting inverse bright bold <background> on <foreground> but this is really quite ugly.
The
_COLOR_BRIGHTflag should be separated into_COLOR_FGBRIGHTand_COLOR_BGBRIGHTto allow accessing the upper 8 colors in ANSI mode. Particularly this allows access to bright and bold colors.The output coding currently as:
libshared/src/Color.cpp
Line 487 in ba9b76d
Currently it's possible to trick the existing code into giving bright and bold colors by requesting
inverse bright bold <background> on <foreground>but this is really quite ugly.