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);
Example #3
0
 public char GetCell(int x, int y, out ConsoleColor background, out ConsoleColor foregound)
 => CellEncoding.Decode(_Cells[x, y], out background, out foregound);