public AnsiStringBuilder AppendForegroundFormat(ConsoleColor color) { string code = AnsiSgrEscapeCodes.GetForegroundColorCode(color); if (code == null) { return(this); } return(AppendSgrAnsiEscapeSequence(code)); }
public AnsiStringBuilder AppendForegroundFormat(byte red, byte green, byte blue) { string code = AnsiSgrEscapeCodes.GetForegroundColorCode(red, green, blue); return(AppendSgrAnsiEscapeSequence(code)); }