-
Notifications
You must be signed in to change notification settings - Fork 4
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
working vim in an ssh2 session, terminal screen does not update properly. #40
Comments
I tried many times but failed to reproduce this issue. I guess it might be caused by broken window |
Signed-off-by: xiaoming <2014500726@smail.xtu.edu.cn>
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, quardCRT/lib/qtssh/sshshell.cpp Line 119 in 0315f43
quardCRT/src/sessionswindow/sessionswindow.cpp Lines 335 to 337 in 0315f43
Now, quardCRT/lib/qtssh/sshshell.cpp Line 121 in ea773b2
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
![image](https://private-user-images.githubusercontent.com/172039585/337652387-88beb56d-dc28-4fb2-9be3-587a93fd5b02.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3NjQyNjksIm5iZiI6MTcyNDc2Mzk2OSwicGF0aCI6Ii8xNzIwMzk1ODUvMzM3NjUyMzg3LTg4YmViNTZkLWRjMjgtNGZiMi05YmUzLTU4N2E5M2ZkNWIwMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QxMzA2MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMmNkYjJkYzk2ZjhhZTVlYjhhZmQyNmFhZWJkZjRmYTJjNTM4YjFhZTY2NjU0ZjJmYWI5MTcxYTVjMDE4Y2IxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.R1hgHIS94vu8L7Am86H31-_aHj2VT6fBcbW2s-3v3JE)
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: