Example #1
0
 public unsafe void Clear(int start, int length, ConsoleChar fillChar)
 {
     PrimaryBuffer.Clear(start, length, fillChar);
 }
        //private static int GetColor(byte consoleColor)
        //{
        //    // ARGB
        //    uint a = 0;
        //    uint r = 0xFF;
        //    uint g = 0;
        //    uint b = 0;
        //    uint value = a;
        //    value = (value << 8) | r;
        //    value = (value << 8) | g;
        //    value = (value << 8) | b;
        //    return (int)value;
        //}

        public void SetChar(int row, int column, ConsoleChar c)
        {
            DrawChar(row, column, (byte)c.Char, c.ForegroundColor, c.BackgroundColor);
        }
Example #3
0
 public unsafe void Clear(ConsoleChar fillChar)
 {
     PrimaryBuffer.Clear(fillChar);
 }
Example #4
0
 public unsafe void SetChar(int row, int column, ConsoleChar terminalChar)
 {
     PrimaryBuffer.Chars[(row * Columns) + column] = terminalChar;
 }
Example #5
0
 public unsafe void ClearRow(int row, ConsoleChar fillChar)
 {
     Clear(row * Columns, Columns, fillChar);
 }
Example #6
0
 public unsafe void Clear(ConsoleChar fillChar)
 {
     Clear(0, Rows * Columns, fillChar);
 }
Example #7
0
 public unsafe void ClearRow(int row, ConsoleChar fillChar)
 {
     PrimaryBuffer.ClearRow(row, fillChar);
 }