FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-22-2009, 07:42 AM
Daniel Dalton
 
Default mouse and gpm

Hi,

I'm using a mouse with gpm and brltty, and it is working well... Is it
possible to get the scroll wheel on my mouse to scroll the terminal in
text mode? eg. work like the page up and page down keys, maybe not as
bigger chunks though... Thought it could be cool to scroll emacs buffers
and the like with a mouse under text mode?

Is this possible with gpm?

Thanks,

Daniel.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 03-24-2009, 11:05 AM
Chris Bannister
 
Default mouse and gpm

On Sun, Mar 22, 2009 at 07:42:44PM +1100, Daniel Dalton wrote:
> Hi,
>
> I'm using a mouse with gpm and brltty, and it is working well... Is it
> possible to get the scroll wheel on my mouse to scroll the terminal in
> text mode? eg. work like the page up and page down keys, maybe not as
> bigger chunks though... Thought it could be cool to scroll emacs buffers
> and the like with a mouse under text mode?
>
> Is this possible with gpm?

I think the next/new ncurses will allow this sort of thing. Maybe Thomas
Dickey has more info. He seems to magically pop in if xterm or lynx is
mentioned in a post.

--
Chris.
======
I contend that we are both atheists. I just believe in one fewer god
than you do. When you understand why you dismiss all the other
possible gods, you will understand why I dismiss yours.
-- Stephen F Roberts


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 03-24-2009, 07:57 PM
Thomas Dickey
 
Default mouse and gpm

On Tue, Mar 24, 2009 at 12:50:17PM +0100, Chris Bannister wrote:
> On Sun, Mar 22, 2009 at 07:42:44PM +1100, Daniel Dalton wrote:
> > Hi,
> >
> > I'm using a mouse with gpm and brltty, and it is working well... Is it
> > possible to get the scroll wheel on my mouse to scroll the terminal in
> > text mode? eg. work like the page up and page down keys, maybe not as
> > bigger chunks though... Thought it could be cool to scroll emacs buffers
> > and the like with a mouse under text mode?
> >
> > Is this possible with gpm?
>
> I think the next/new ncurses will allow this sort of thing. Maybe Thomas
> Dickey has more info. He seems to magically pop in if xterm or lynx is
> mentioned in a post.

google (though as time passes, it's more and more spotty in its coverage)

I hadn't really thought about gpm in particular, but wheel mice are
doable with the extension I added a few years ago, and have tested in
xterm (which is a binary change).

That part is something that Daniel Baumann is steering toward
in ncurses updates.

For gpm specifically - that would still require some change (but doesn't
require a whole new version of ncurses). Someone a few months ago
stated that there's some patch (or configuration) where gpm would
deliver button 4/5 events sort of like xterm, but looking at the gpm.h
header, the only comments regarding wheel mice say it's not clear:

/*....................................... Cfg buttons */
/* Each button has one bit in the 16 bit buttons field.
* Mouse movement and wheel movement are not associated with a button
* i.e. buttons=GPM_B_NONE in these cases
* (except for ms3 mouse, for reasons unknown?)
* The middle button if pressed down (or clicked) is independent of
* the wheel "device" which it happens to be associated with
* The use of GPM_B_UP/DOWN with ms3 is unclear. Maybe the wheel
* could be rolled forward then backward
* and this would generate a 'click' event on 'button 5' GPM_B_UP,
* but really the expected behaviour of wheel is movement, typically
* used for jump scrolling or for jumping between fields on a form. */

#define GPM_B_DOWN 32
#define GPM_B_UP 16
#define GPM_B_FOURTH 8
#define GPM_B_LEFT 4
#define GPM_B_MIDDLE 2
#define GPM_B_RIGHT 1
#define GPM_B_NONE 0

(since gpm's documentation is its source code...)

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
 

Thread Tools




All times are GMT. The time now is 11:11 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org