-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Resizing when writing causes text to disappear and spaces to appear #4639
Comments
@xReav3r any more details on how you're writing and what you mean by writing periodically? I can't reproduce this but it would be great to fix it. |
Managed to simulate it here (just resize the window width under line width): |
Yes, but it just need to be narrower than line, even if it is one character, but looks like it depends on the text that goes before endline. In real usage I am streaming real terminal trought ReadableStream, where size of chunk is "random". When resizing over line width everything is okay. |
I have a similar bug with resizing. Everything is ok without text, but if i paste the text and zoom in to 175% it starts to duplicate and looks weird: xterm5-3-0-zoom.webm
|
I also encountered the same problem. After the browser was scaled, due to the fact that the row height was not an integer when calculating rows, there was an error in the calculation. Finally, when calculating the total height of the container, there was a difference from the actual container height, resulting in some content being occluded |
Any updates? Still relevant. |
I think this is just related to reflow no working as expected when writing directly to the terminal instead of via a pty. Closing as designed since AFAIK everything works fine when a shell is running (with some known exceptions across most terminals), if you can't reproduce this in the xterm.js demo it's likely not a problem. Also if reflow around the cursor is an issue a change was just merged in for this: #5234 |
If not resizing when writing (now I can resize as I want and text is correct):
If resizing when writing:
Tried fitAddon.fit() and even terminal.resize(fitAddon.proposeDimensions()).
Also tried to debounce to 500 ms with no luck.
Data is written by chunks as Uint8Array from ReadableStream.
Details
Steps to reproduce
The text was updated successfully, but these errors were encountered: