-
Notifications
You must be signed in to change notification settings - Fork 42
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
Scrolling with mouse wheel #16
Comments
I just tried, and it seems to work for me. What are your terminal settings? Or, do you mean the text selection wrapping including offsets instead of just hex or instead of just ASCII? |
I am using KDE on Debian Stretch. I have set Yet I need several ticks on the mouse wheel to move a single line in hexedit. My expectation is that the cursor moves by 5 lines for every tick. The same can be achieved in vim by setting mouse=a. Best regards Heinrich |
"mouse=a" I think that just turns on mouse support in vim for all modes, I don't think that it should adjust anything related to scroll speed, just turn it on. "I have set Mouse wheel scroll by 5 lines." - KDE has had a scroll-wheel speed setting for ages, but it gets complicated when connecting X11 mice to console programs... hexedit is not directly aware of scroll wheels, it only uses curses. Somewhere between KDE and curses there is some logic to convert the speed of scrolling into some discrete events, and that is probably not working correctly. Or, it's possible that getch() is returning a key event hexedit does not know how to handle. "Yet I need several ticks on the mouse wheel to move a single line in hexedit." I think this means KDE/YourTerminal/curses is sending KEY_UP and KEY_DOWN(or related) codes, just not enough of them. If you run this commit https://github.com/rsaxvc/hexedit/commit/9dd0521f180f4e061aeae04a03ded2e3fc9e3eea, it'll print out what hexedit is receiving from ncurses. Another thought is that implementing support for ncurses KEY_MOUSE should also be doable, though we'll need to make sure it doesn't interfere with platforms without it, who will continue to send KEY_UP/KEY_DOWN. |
On my Logitech G100s going through Xorg's |
What terminal emulators are you each using?
…On Aug 7, 2017 8:33 PM, "Charles Huber" ***@***.***> wrote:
On my Logitech G100s going through Xorg's libinput driver (the default on
Stretch, I think) and "3 lines" in the KDE config page I get a Key:258/
Key:259 every one (occasionally) or two (mostly) wheel notches.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAVS4LpuC1KTCv47vlTuM30zGvifangbks5sV7sEgaJpZM4OEmRK>
.
|
The Konsole that Debian Stretch ships:
|
Same for me: KDE Konsole 16.12.0 on Debian Stretch
|
Scrolling with the mouse wheel does not work properly.
You might look at vim option
mouse=a
to understand how it can be fixed.
Best regards
Heinrich Schuchardt
The text was updated successfully, but these errors were encountered: