-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
Re-draw issue on resize #1265
Comments
I have this same issue. Something very similar also happens in Windows Terminal, and since this problem doesn't appear in other platforms, I thinks it's likely an issue with ConPTY. |
Previously, we'd just default the resize quirk on for all programs on Windows. That pessimizes the otherwise fine behavior of `wezterm ssh` or mux connections to unixy platforms. This commit moves the quirk out of the config trait and makes it a runtime property of the terminal, and then arranges for it to be set when we know that we set up a conpty for the terminal. refs: #1265
There's a lot of bugs around resizing in conpty:
The most problematic aspect of it is that the cursor moves up and then conpty decides to repaint the screen at that position, corrupting the output. wezterm has a quirk mode for conpty to push the screen contents into the scrollback as part of resizing, in order to preserve the existing output, but it is still frustrating to deal with the fallout as the cursor position doesn't seem to agree in all cases. I think we're waiting for this to land in conpty to bypass that layer: I've learned to live with this when working in pwsh or cmd, but try to avoid conpty when I'm working in a unix environment by using either I just pushed 53c4714 to disable the resize quirk mode for those bypass cases: previously it was hard coded to enabled for the windows GUI. Now it is only enabled when we know that we started ConPTY for a given pane. |
What Operating System(s) are you seeing this problem on?
Windows
WezTerm version
wezterm 20211024-192045-f4ee31fe
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Using local build from
main
@ f4ee31fDescribe the bug
While writing-up #1263 I noticed that I have some "redraw" issues after resizing.
Step 1:
cat
'd to the screen and in full screenStep 2:
Step 3:
So there are two issues here:
To Reproduce
cat
a large file to the screen when the window is maximisedConfiguration
no config
Expected Behavior
It would be great if maximised -> shrunk -> maximised left what was on the screen alone
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: