private static StringBuilder SetColorColor(this StringBuilder b, Mode mode, AnsiColor color) => b .Escape() .Append('[') .Append((byte)mode) .Append(";2;") .Append(color.R).Append(';') .Append(color.G).Append(';') .Append(color.B).Append('m');
public static StringBuilder SetForegroundColor(this StringBuilder b, AnsiColor color) => b.SetColorColor(Mode.SetForegroundColor, color);