public Buffer(ConsoleColor background, ConsoleColor foreground, int width, int height) { bufferSize = new Coord(width, height); writeRegion = new SmallRect(width, height); Array = new CharInfo[height, width]; Array.Fill(new CharInfo(' ', background, foreground)); }
public static extern bool WriteConsoleOutput( this IntPtr outputHandle, [MarshalAs(UnmanagedType.LPArray), In] CharInfo[,] buffer, Coord bufferSize, Coord bufferStart, ref SmallRect writeRegion);