Re: Anyone got a patch for letting the scroll-wheel work (in xterms)?

Alexey Toptygin <[email protected]>
Newsgroups gmane.mail.pine.general
Message-ID <[email protected]>
On Thu, 2 Nov 2006, Bert Driehuis wrote:

> On Thu, 2 Nov 2006, Alexey Toptygin wrote:
>
>> Probably not. Every terminal I've seen that does anything with mouse wheel 
>> events uses them to scroll the scrollback buffer. If you wanted them to 
>> send PageUP/Down instead, you'd lose the wheel-scrolls-buffer functionality 
>> and I'd bet 99% of that terminal's users that have wheel mice would 
>> complain. I suppose you could make this a configurable behavior, but I 
>> honsetly don't think it's worth the effort.
>
> According to this FAQ for vim, XTerm's mousewheel handling can be overridden:
>
>   http://vim.sourceforge.net/htmldoc/scroll.html#xterm-mouse-wheel
>
> But no, I don't know how to make Pine use those keystrokes :-)

Huh, I stand corrected. Apparently, there is a (actually more like 5 
subtly different) non-standard xterm extension that, when activated by 
sending special sequences to the xterm, causes xterm to report all mouse 
(including wheel) events to the application. I'm not sure this can be used 
safely and/or portably since far from everything that calls itself an 
xterm is in fact an xterm... but vim is widely deployed so perhaps a look 
in the vim sources would show a good way to do this.

 			Alexey
_______________________________________________
Pine-info mailing list
[email protected]
http://mailman1.u.washington.edu/mailman/listinfo/pine-info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.