/// <summary> /// Sets the cursor row and column position. /// </summary> /// <param name="x">The new column position of the cursor.</param> /// <param name="y">The new row position of the cursor.</param> public void SetCursorPosition(int x, int y) { if (disposed) { throw new ObjectDisposedException(this.ToString()); } Coord cursorPos = new Coord((short)x, (short)y); if (!WinCon.SetConsoleCursorPosition(_handle, cursorPos)) { throw new ApplicationException("Error setting cursor position"); } }