Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101605 - Mouse wheel not working in console (gpm)
Summary: Mouse wheel not working in console (gpm)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-06 20:36 UTC by Andrzej Zaborowski
Modified: 2005-09-27 10:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A patch that adds mouse wheel supports to gpm. (gpm-1.20.1balrog.patch.gz,1009 bytes, patch)
2005-08-06 20:41 UTC, Andrzej Zaborowski
Details | Diff
this is in plaintext, the other one was gzipped (gpm-1.20.1balrog.patch,2.18 KB, patch)
2005-08-07 07:57 UTC, Andrzej Zaborowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrzej Zaborowski 2005-08-06 20:36:18 UTC
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
Comment 1 Andrzej Zaborowski 2005-08-06 20:41:00 UTC
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.
Comment 2 Andrzej Zaborowski 2005-08-06 20:44:07 UTC
The patch will only work on Linux and should work with any terminal type (VT,
linux, xterm for sure)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-08-07 00:44:08 UTC
Sorry, the patch is some unreadable binary mess. Please, attach a plaintext
patch and reopen then.
Comment 4 Andrzej Zaborowski 2005-08-07 07:57:32 UTC
Created attachment 65312 [details, diff]
this is in plaintext, the other one was gzipped
Comment 5 Andrzej Zaborowski 2005-08-07 07:59:30 UTC
posted the patch again, in plaintext
Comment 6 SpanKY gentoo-dev 2005-08-07 15:09:18 UTC
thanks, added to gpm-1.20.1-r5
Comment 7 ferret 2005-09-27 10:38:46 UTC
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.
Comment 8 SpanKY gentoo-dev 2005-09-27 10:48:25 UTC
sure, post a patch ;)