ansiForegroundSequence property

String get ansiForegroundSequence

Build ANSI sequence for this colour as a foreground.

Implementation

String get ansiForegroundSequence {
  if (this is ResetColor) {
    return ansiResetForeground;
  }
  return (a != 255) ? '38;2;$r;$g;$b;$a' : '38;2;$r;$g;$b';
}