<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] mouse tracking support



On Sunday, April  3 at 02:24 AM, quoth Anatoly Vorobey:
> On Sat, Apr 02, 2005 at 06:11:17PM -0500, Thomas Dickey wrote:
> > On Sun, 3 Apr 2005, Anatoly Vorobey wrote:
> > 
> > >- Currently the events that are recognised are: button clicks and wheel
> > >movements for wheel mice. Wheel movements are only recognized with SLang
> > >because ncurses doesn't support wheel movement recognition.
> > 
> > from ncurses NEWS file:
> > 
> > 20050205
> >         + add experimental configure option --enable-ext-mouse, which 
> >         defines
> >           NCURSES_MOUSE_VERSION 2, and modifies the encoding of mouse 
> >           events to
> >           support wheel mice, which may transmit buttons 4 and 5.  
> 
> Oh. That's great, thanks! I was going to make a patch to send to you with
> more or less the same functionality, and now I don't have to! :) (I'd found
> this:  
> http://lists.gnu.org/archive/html/bug-ncurses/2005-02/msg00008.html ,
> but I only looked at lib_mouse.c of the last release, 5.4, and haven't 
> checked subsequent patches yet).

If it helps, Vim has supported scrollwheels for a long time even when 
using ncurses---not sure how, but it's somewhere in the vim source.

~Kyle
-- 
I prefer to be called "EVIL GENIUS!"
-- Jumba, from "Lilo & Stitch"

Attachment: signature.asc
Description: Digital signature