Example #1
0
        public void Clear(ConsoleColor background, ConsoleColor foreground)
        {
            int c = CellEncoding.Encode(' ', background, foreground);

            for (int i = 0; i < Width; i++)
            {
                for (int j = 0; j < Height; j++)
                {
                    _Cells[i, j] = c;
                }
            }
        }
Example #2
0
 public void SetCell(int x, int y, char ch, ConsoleColor background, ConsoleColor foreground)
 => _Cells[x, y] = CellEncoding.Encode(ch, background, foreground);