public void SetWindowPosition(int left, int top) { if (HeightAsBuffer) { this.left = Math.Max(Math.Min(left, Cols - FakeConsole.WindowWidth), 0); this.top = Math.Max(Math.Min(top, Rows - FakeConsole.WindowHeight), 0); } else if (this.left > 0 || this.top > 0) { this.left = 0; this.top = 0; } FakeConsole.SetWindowPosition(this.left, this.top); }