-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Visual panels mode sometimes doesn't restore terminal modes correctly #2216
Comments
Thanks for the well done report. BTW, how did you create those gif? :) |
|
This is most likely caused by improper saving/restoring of the terminal mouse mode by the panels mode using calls like Line 6019 in 66d6bb9
visual mode also messes with this setting which is likely why opening and closing it fixes this. |
Thanks for digging a bit more into this! I didn't have time for this yet. If you feel like it, we of course appreciate PR as well; :D |
I will have to dig further in to figure out what the correct mouse mode setting should be first. Don't want to just blindly change stuff 😝 |
Looking into Documented here: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html.
And the commented out code there isn't really boding that well... Maybe something that got messed up during a merge? Combinations that do make sense: (Not sure if actually needed to save and restore mode 1001 or just set/rst it, terminal escapes are kind of arcane) I tried changing to |
@ret2libc I'm not seeing rizin sending |
can you verify that these changes does not affect also the prompt and powershell terminals? |
@wargio In what way? |
just do the same test on the other 2 terminals. |
Manually tested on Widows pwsh 7.2.1 and cmd running on both wt.exe (Windows Terminal) and classic conhost on Windows 10.0.19044.0 and seems to work fine. |
Work environment
rizin -v
full output, not truncated (mandatory)Expected behavior
On exiting and entering visual panels mode (
v
), the terminal modes re restored correctly, so scrollback, mouse wheel interaction and such work correctly.Actual behavior
On the first launch of a terminal (Windows Terminal running pwsh 7.2.1) and entering (
v
) and exiting (q
) visual panels mode, the terminal modes are not restored correctly and scroll back doesn't work and the mouse wheel enters escape sequences into the input line instead of being interpreted.Steps to reproduce the behavior
v
).q
).Workaround: Entering visual mode (
V
) and exiting seems to fix this.Additional Logs, screenshots, source code, configuration dump, ...
The text was updated successfully, but these errors were encountered: