gpm-1.20.1 doesn't react to mouse wheel moves. I realize this is not exactly a bug, just lack of a feature, but I was told this is the right place to post patches. Reproducible: Always Steps to Reproduce: 1. Run gpm 2. Spin the wheel on your mouse Actual Results: nothing Expected Results: It should perform some action. A most obvious thing that it might do is emit up or down arrow keys to the console and let the program that's on the current tty interpret these keys, since most programs support this. This is for gpm version 1.20.1
Created attachment 65279 [details, diff] A patch that adds mouse wheel supports to gpm. I'm posting this patch here because I couldn't find a better place and was told it was useful by people who tried it.
The patch will only work on Linux and should work with any terminal type (VT, linux, xterm for sure)
Sorry, the patch is some unreadable binary mess. Please, attach a plaintext patch and reopen then.
Created attachment 65312 [details, diff] this is in plaintext, the other one was gzipped
posted the patch again, in plaintext
thanks, added to gpm-1.20.1-r5
Can we make this optional? On my system I'm happier without it. When I use the mouse in console to copy and paste, I sometimes scroll the wheel accidentally when trying to press it. This now causes me to accidentally go back to the last command (or input line, in irssi) and it comes out quite silly. I can imagine this might be a common problem, since console users only reach over to use the mouse occasionally. A USE flag would be the easiest way, or an edit to the patch to allow you to set the output when /usr/sbin/gpm is run. It's a shame there's no way of making it act like imwheel, dependent upon the program running in the console at the time. This feature seems fairly nifty in programs like elinks, but in the other programs it most certainly is an annoyance to me at the moment.
sure, post a patch ;)