-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Corrupted terminal output after window resized #15042
Comments
Hi @lhecker, yes I have tried enabling and disabling the new text renderer, also tested toggling Redraw entire screen and their combinations. All of them behaves the same. The issue seems to exist in any program using ConPTY like VS Code. |
Seems like Terminal can't calculate the correct position of cursor but taking col position from last finished command. |
Note that the terminal displays the cursor in the correct position immediately after the resize - it's only once you start typing that it moves to the wrong place. So I suspect this may be PowerShell or PSReadLine issue. Possibly the same underlying problem as PowerShell/PSReadLine#1456. Also note that you don't get this in the cmd shell, or a bash shell, which is another reason to believe that PowerShell may be the source of the problem. |
Hi @j4james, thank you for pointing this out. I have tested on an environment that does not have PSReadLine installed. But still you may be right, this seems to be a Powershell issue not a Terminal issue, as I have not observed it in a cmd shell. I will leave this issue open for now and reach out to Powershell support and wait for their response. |
Yea, I'd be sure that this is a PowerShell issue. Does this repro in a Looks like the downstream issue is being tracked in PowerShell/PowerShell#19405 |
Hi @zadjii-msft, yes for now I believe this is a PowerShell issue and I have submitted in their repo. I may close this ticket now. Thank you and everyone else helping analyze root cause for this issue. |
Windows Terminal version
1.16.10262.0
Windows build number
10.0.22621.0
Other Software
No response
Steps to reproduce
Recording.2023-03-24.110725.mp4
Expected Behavior
No response
Actual Behavior
Cursor will be off-position and overwrite my primary prompt.
The text was updated successfully, but these errors were encountered: