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); }
public unsafe void Clear(ConsoleChar fillChar) { PrimaryBuffer.Clear(fillChar); }
public unsafe void SetChar(int row, int column, ConsoleChar terminalChar) { PrimaryBuffer.Chars[(row * Columns) + column] = terminalChar; }
public unsafe void ClearRow(int row, ConsoleChar fillChar) { Clear(row * Columns, Columns, fillChar); }
public unsafe void Clear(ConsoleChar fillChar) { Clear(0, Rows * Columns, fillChar); }
public unsafe void ClearRow(int row, ConsoleChar fillChar) { PrimaryBuffer.ClearRow(row, fillChar); }