public Task SetBackgroundTextColorAsync(ConsoleColor color) { string code = AnsiSgrEscapeCodes.GetBackgroundColorCode(color); if (code == null) { return(Task.CompletedTask); } return(WriteAnsiSgrEscapeSequenceAsync(code)); }
public void SetBackgroundTextColor(ConsoleColor color) { string code = AnsiSgrEscapeCodes.GetBackgroundColorCode(color); if (code == null) { return; } WriteAnsiSgrEscapeSequence(code); }