Fixed PTY/TTY console width

https://github.com/PowerShell/Win32-OpenSSH/issues/578
This commit is contained in:
Manoj Ampalam 2017-03-13 16:55:04 -07:00
parent 8addc04e87
commit be750af114
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ w32_ioctl(int d, int request, ...)
return -1; return -1;
} }
wsize->ws_col = c_info.srWindow.Right - c_info.srWindow.Left + 1; wsize->ws_col = c_info.dwSize.X;
wsize->ws_row = c_info.srWindow.Bottom - c_info.srWindow.Top + 1; wsize->ws_row = c_info.srWindow.Bottom - c_info.srWindow.Top + 1;
wsize->ws_xpixel = 640; wsize->ws_xpixel = 640;
wsize->ws_ypixel = 480; wsize->ws_ypixel = 480;