2011/3/3 Nicholas Marriott <nicholas.marri...@gmail.com>:
>
> I can't test offhand so I might be wrong but IIRC gnome-terminal only
> does this when the application hasn't enabled the mouse? When it does,
> gnome-terminal sends standard xterm mouse input.
>

I believe VTE (gnome-terminal) converts mouse wheel events to up/down
key events when it's in the alternate screen mode. This allows
mouse-wheel scrolling in less, for example (I don't think less is
enabling the mouse, it just sees up and down key codes). In Vim this
has the effect of moving the cursor up or down a few lines when Vim is
not configured to use the mouse. When Vim is configured to use the
mouse it scrolls the page, of course.

I'm not completely clear on the problem being discussed in this
thread, but I don't think the mouse wheel effect has much to do with
the Shift-PageUp/PageDown issue. As far as I can tell, VTE doesn't
pass any code through to the application for that (even in alternate
screen buffer mode, where perhaps it should). Shift-Up/Down, on the
other hand, are passed to the application. I'm not sure if terminfo
exposes them, however.

-Kevin

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to