Closed letsview closed 5 months ago
I tried many times but failed to reproduce this issue. I guess it might be caused by broken window resize
.
Have you tried to resize the window after this error occurs? What happens?
The problem is solved by opening the text file with VIM and then adjusting the window size. As shown in the following image, the size of the editing window when opening a document with VIM for the first time seems to be related.
The problem is solved by opening the text file with VIM and then adjusting the window size. As shown in the following image, the size of the editing window when opening a document with VIM for the first time seems to be related.
I think my latest commit ea773b2 may have fixed this issue. The original logic was to use a fixed terminal size of 80x24 after establishing the ssh connection, and resize sshpty according to the window size after 100ms. However, if the link establishment time is greater than 100ms, the resize will be ignored, resulting in the final size staying at 80x24, which is exactly the same as the situation in the screenshot. ea773b2 has now fixed this problem and will use the correct window size when initializing the connection.
Before,
https://github.com/QQxiaoming/quardCRT/blob/0315f435c173fb558b1663e7f2bb45c6a16c5575/lib/qtssh/sshshell.cpp#L119 https://github.com/QQxiaoming/quardCRT/blob/0315f435c173fb558b1663e7f2bb45c6a16c5575/src/sessionswindow/sessionswindow.cpp#L335-L337
Now,
If you are interested you can try the artifacts in the github action workflow, or wait for my next release. Thank you for your contributions to make quardCRT better!
V0.4.7 is now available, which should resolve this issue.
Describe the bug After working with vim in an ssh2 session and exiting, the terminal screen does not update properly.
To Reproduce Steps to reproduce the behavior:
Expected behavior The screen should be neatly updated.
Screenshots
Desktop (please complete the following information):
Additional context