-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
It will get a character "%" when terminal window is small #2564
Comments
It happens in VTE as well, looks like it's related to pty and terminal size being out of sync? vercel/hyper#3586 @jerch thoughts? I had this reported to VS Code a few times as well. |
@Tyriar Imho thats a zsh specialty (never seen it in other shells) - whenever a line has no EOL before prompt zsh seems to mark it with '%'. Question here is - what happened to the '\n' during resize? Beside a short prompt those lines are empty, why they are affected at all? This looks like it is oh-my-zsh driven. I'd search the culprit among their scripts, something does not deal with resizing that well and prolly swallowed the '\n'. About resizing itself - yes we have a short time frame where things are out of sync. We cannot do much about it, also this applies only to data flowing in while resizing, other data should not be affected. Summary: This is not an xterm.js issue, it will happen in other emulators as well. We might have unfortunate circumstances during resize that further provoke this, but cannot be fixed easily. |
I was thinking about doing synchronous resizes for vscode a while ago (blocking everything before resizing), is this expected to fix the problem? |
@Tyriar Not completely fixing, but lowering, yes. There are still buffers involved, that are beyond any control with pty master side (all on slave side). |
@jerch should we close as designed? I think oh-my-zsh closed as not their problem. |
@Tyriar Yeah its currently as designed, unless you want to open that construction site in near future... |
Details
Steps to reproduce
I use node-pty with xterm.js, and the shell is zsh. (It's nice with the default bash.)
When the window is big enough, it looks well.
width: 1360px;
But if I resize the window smaller, and the character "%" shows up.
width: 405px;
Here are how I connect node-pty and xterm.js.
And here are the logs, but they look same.
Expected:
Unexpected:
How to resolve this problem ? Thank your guys.
The text was updated successfully, but these errors were encountered: