terminal: RIS does not reset mouse mode state or encoding
Notes from @DHowett:
In xterm,
RIS
disables mouse mode and (probably) resets the encoding.DECSTR
does not
Environment
Windows build number: 10.0.18362.239
Windows Terminal version (if applicable): 1.5.3242.0 AND 1.4.3243.0
Debian 9.13 in WLS; RHEL7.8 on remote server
Steps to reproduce
ssh connect to the remote server do some actual work there vim, gcc, gdb, the whole daily work sh** After you’re done with work, do not disconnect the remote connections, just put your windows Laptop to “Energy saving”, remove it from the dock, put it into your bag and have a nice evening with the kids. Next day resume the Laptop, click into the one of the still open terminal panes trying to reconnect the remote machine. Try to scroll in the terminal
Expected behavior
After Wakeup from standby, I’d expect to have all the normal mouse interaction. recall the ssh login command using [Cursor up] and resume work. Vim and terminal scrolling should work.
Actual behavior
Any Mouse interaction with the terminal will spam the prompt with more or less random text (same button press creates different input in different panes)
Wheel scrolling is impossible as just spams the promt.
Only solution: kill all the panes, have new ones.
I could live with issues like these if they would be solvable with the bash reset
command.
The behavior is not always reproducible. some panes work just fine. Others show even more strange behavior like flashing on mouse interaction.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 29 (7 by maintainers)
Commits related to this issue
- Update RIS to reset mouse mode and encoding (#10602) ## Summary of the Pull Request RIS resets mouse mode and encoding ## PR Checklist * [x] Closes #8613 * [x] CLA signed. If not, go over [h... — committed to microsoft/terminal by PankajBhojwani 3 years ago
- Update RIS to reset mouse mode and encoding (#10602) ## Summary of the Pull Request RIS resets mouse mode and encoding ## PR Checklist * [x] Closes #8613 * [x] CLA signed. If not, go over [here](ht... — committed to microsoft/terminal by PankajBhojwani 3 years ago
- Don't override success value when resetting mouse mode in hard reset (#10661) Quick fix for an error made in #10602 References #8613 Closes #10658 — committed to microsoft/terminal by PankajBhojwani 3 years ago
- Don't override success value when resetting mouse mode in hard reset (#10661) Quick fix for an error made in #10602 References #8613 Closes #10658 — committed to microsoft/terminal by PankajBhojwani 3 years ago
So, are you using mosh or just using plain ssh? I’d recommend mosh if you need to resume work smoothly.