public WinFormsTestConsole(int w, int h)
{
this.BufferWidth = w;
this.WindowHeight = h;
buffer = new ConsoleBitmap(0, 0, w, h);
var timer = new System.Windows.Forms.Timer();
timer.Interval = 100;
timer.Tick += Timer_Tick;
timer.Start();
offsreenBuffer = new Bitmap(1000, 1000);
onScreenBuffer = new Bitmap(1000, 1000);
onScreenGraphics = Graphics.FromImage(onScreenBuffer);
offScreenGraphics = Graphics.FromImage(offsreenBuffer);
this.Font = new Font("Consolas", 12);
this.charSize = onScreenGraphics.MeasureString("1", Font);
}