Closed vadymeng0 closed 3 years ago
So, it looks like that, with current ConPTY implementation it is not possible to correctly handle resizing of the window when backscroll is enabled. This is because right after resizing, the system tries to re-draw the screen by sending the whole contents of the pseudo console, line by line, even after the window is actually resized.
See this issue for additional info: https://github.com/Microsoft/console/issues/383
@nikitar020 In develop
branch, there is a method (pty *winConPty) Clear() that shows how to fill the output screen buffer with arbitrary data. It fills it with "emptiness" but you can write a method that fills with appropriate data that should be there after resizing.
Closed due to complete rewrite as part of bringing the project back to life, please create a new issue if still relevant. Thank you!
When resizing the Aminal window, it looks like some lines on the top of the terminal buffer are doubling so that it is possible to scroll the window up and see the duplicates. The number of doubled lines seems to depend on how small the window is made. This behavior is reproduced on Windows, and not on Debian. Not tested on MacOS.
To Reproduce Steps to reproduce the behavior:
cmd.exe
will be displayed.Expected behavior There must be no duplicate lines on resizing the window.
Environment (please complete the following information):
Windows
only (onDebian
was not able to reproduce, onMacOS
did not test