When the mode-mouse option is on, support dragging to make a selection

in copy mode.

Also support the scroll wheel, although xterm strangely does not ignore
it in application mouse mode, causing redraw artifacts when scrolling up
(other terminals appear to be better behaved).
This commit is contained in:
Nicholas Marriott
2010-05-31 19:51:29 +00:00
parent e1e120de1c
commit 43fa9a9ba6
5 changed files with 67 additions and 16 deletions

6
tmux.1
View File

@ -2078,10 +2078,8 @@ Key bindings default to emacs.
.Op Ic on | off
.Xc
Mouse state in modes.
If on,
.Nm
will respond to mouse clicks by moving the cursor in copy mode or selecting an
option in choice mode.
If on, the mouse may be used to copy a selection by dragging in copy mode, or
to select an option in choice mode.
.Pp
.It Xo Ic monitor-activity
.Op Ic on | off