-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Mouse scrolling doesn't work in Windows Terminal #183
Comments
Thanks for reporting! This is likely an upstream bug with cview or tcell. In the |
The issue appears to still be there in the executable you attached. |
I have opened gdamore/tcell#428 to ask about this. As this is an upstream issue, this will remain open and unfixed until I understand the issue better, and likely until someone else fixes it. Thanks again for spotting this. |
tcell definitely does not use ED. tcell attempts to rely on only a minimal set of terminal features unless they bring particular value. Our redraw doesn't clear the screen at all, instead we redraw the entire screen. I will look into supporting this escape code, however adding support for new escape codes is kind of a pain because we never know what the various terminals (and terminfo descriptions) have. |
@gdamore Thanks for responding, I understand the value in sticking to simple features. Do you have suggestions for what cview could do to mitigate this while waiting for the possible fix? |
I will eventually try to get this done in tcell. Unfortunately I haven't had much time to work on tcell (it doesn't really pay any bills), but hopefully I'll get to it soon. If someone wanted to submit a PR to tcell I'd be open. |
@GoodClover could you confirm something? Does scrolling with the mouse work normally? Like without font size changes or window resizes like you mention. When you scroll with the mouse on a Gemini page, does it work? |
Nope, you can't don't get scroll-back normally, only when the window is resized/font changed/etc. |
Ok, I believe I understand the issue then, as I explain here. I will work with the cview dev towards a fix. The actual issue is that scrolling is broken in Windows Terminal. The thing shown in your video is just a side effect. |
Oh, sorry about the fuss them. |
I'm not entirely sure if what they're doing can be labelled as a bug. If I can fix it on my end I will. |
If tcell is updated in Amfora this may be fixed, see this comment. |
For a demonstration of the bug, a video explains best:
(This is Windows Terminal with cmd)
When you either change your terminal's font size (what I did in the video) or resize the terminal window, Amfora re-renders everything to fit (already better than some programs :).
However, it appears that rather than clearing the entire screen + scroll-back it just clears the screen and leaves a messed up scroll-back.
As far as I can tell this is the only thing that can cause this issue in amfora.
I presume that this caused by a use of the ED escape sequence mode 2 instead of mode 3, meaning that the screen is cleared and not the scroll-back.
Either that or a different sequence of escape codes that is not ED is being used to clear the screen, in that case it should be switched to ED.
Above screenshot from Wikipedia
This may actually be an upstream issue, but I'm not a Go programmer so idk
The text was updated successfully, but these errors were encountered: