-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal resize not always propagated to program running under winpty #110
Comments
When winpty makes the terminal wider, it first expands the buffer with I think the WSL If WSL Synthesizing a This theory explains the issue with WSL bash, but not Cygwin bash. When I run Cygwin bash in a console, the |
Is bash.exe's behavior "according to the rules"? (Are there even rules?) I.e., does this mean an issue should be opened in https://github.com/Microsoft/BashOnWindows/ too? |
I looked at Cygwin master (https://github.com/mirror/newlib-cygwin). It issues
Here's a Cygwin/WSL test program I used: https://gist.github.com/rprichard/d1512c1fea735b8929371d82dfcb08cc. |
@CherryDT This issue on BashOnWindows is closely related, microsoft/WSL#1001. There's clearly a need for WSL For this issue, I'm inclined to have winpty synthesize a somewhat out-of-place |
See this issue, microsoft/vscode#17609.
It can be reproduced without VSCode. On the VM I'm testing right now, it seems not to reproduce most of the time. I'm not sure what I have to to do to reliably trigger the bug. Maybe maximizing the window helps, maybe using AltDrag or a similar tool helps.
Steps:
(cmd.exe /c mode | grep Columns) && echo $COLUMNS
The true console width will be greater than the width that bash thinks the window has:
The text was updated successfully, but these errors were encountered: