Skip to content

Instantly share code, notes, and snippets.

View ryandle's full-sized avatar

Ryan Yandle ryandle

  • Microsoft
  • Seattle, WA
View GitHub Profile
@patriksvensson
patriksvensson / ConsoleBuffer.cs
Last active March 31, 2021 05:28
Double Buffering Console
private static int _bufferHeight;
private static int _bufferY;
public static async Task Main()
{
_bufferWidth = Console.WindowWidth;
_bufferHeight = Console.WindowHeight;
_bufferY = _bufferHeight;
Console.SetBufferSize(_bufferWidth, _bufferHeight * 2);