Returns the ANSI escape sequence for the foreground color.
If the color is dimmed, returns a compound escape sequence that includes both the dim code (2) and the color code.
@override String get fg => _dim ? '2;$code' : '$code';