Beispiel #1
0
 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));
 }
Beispiel #2
0
 public static extern bool WriteConsoleOutput(
     this IntPtr outputHandle,
     [MarshalAs(UnmanagedType.LPArray), In] CharInfo[,] buffer,
     Coord bufferSize,
     Coord bufferStart,
     ref SmallRect writeRegion);