Пример #1
0
        public Task SetBackgroundTextColorAsync(ConsoleColor color)
        {
            string code = AnsiSgrEscapeCodes.GetBackgroundColorCode(color);

            if (code == null)
            {
                return(Task.CompletedTask);
            }

            return(WriteAnsiSgrEscapeSequenceAsync(code));
        }
Пример #2
0
        public void SetBackgroundTextColor(ConsoleColor color)
        {
            string code = AnsiSgrEscapeCodes.GetBackgroundColorCode(color);

            if (code == null)
            {
                return;
            }

            WriteAnsiSgrEscapeSequence(code);
        }