public void SetForegroundTextColor(ConsoleColor color) { string code = AnsiSgrEscapeCodes.GetForegroundColorCode(color); if (code == null) { return; } WriteAnsiSgrEscapeSequence(code); }
public Task SetForegroundTextColorAsync(ConsoleColor color) { string code = AnsiSgrEscapeCodes.GetForegroundColorCode(color); if (code == null) { return(Task.CompletedTask); } return(WriteAnsiSgrEscapeSequenceAsync(code)); }
public Task SetForegroundTextColorAsync(byte red, byte green, byte blue) { string code = AnsiSgrEscapeCodes.GetForegroundColorCode(red, green, blue); return(WriteAnsiSgrEscapeSequenceAsync(code)); }
public void SetForegroundTextColor(byte red, byte green, byte blue) { string code = AnsiSgrEscapeCodes.GetForegroundColorCode(red, green, blue); WriteAnsiSgrEscapeSequence(code); }