> Applied, but without the shift part.
Thx!
The shift part however is necessary in those cases mentioned where the
program has broken mouse support..
>> Because it gives all CLI programs (even bash history) "intuitive" mouse>>
>> support without updating/fixing every single one of them. There are
>> numerous CLI tools that do take mouse input, but mess it up somehow,
>> f.e. aptitude can not deal with it properly and in ncmpcpp, only
>> scrolling up (!) works.
Also for scrolling the bash history..
The way I sent the patch in, it works quite nicely. I think a man page
section and an option to turn off this automatic alt-screen
wheel-key-sequence translation would be good, too?
attached is manual section from a previous patch iteration, bake as you
see fit.
#Regards
diff --git a/tmux.1 b/tmux.1
index 06a5d59..fc29170 100644
--- a/tmux.1
+++ b/tmux.1
@@ -345,6 +345,25 @@ Key bindings may be changed with the
and
.Ic unbind-key
commands.
+.Sh MOUSE WHEEL INPUT
+If
+.Nm
+is run within a terminal emulator that generates xterm-compatible control
+sequences, various aspects may be controlled by mouse (see
+.Ic mouse-*
+options for reference). Regardless of these settings, mouse input is always
+passed through as-is to mouse-capable programs. For programs not natively
+supporting mouse input,
+.Nm
+can emulate wheel scrolling by sending fake up/down cursor key sequences.
+This can be enabled by holding the Shift-modifier while wheeling, and is
+automatically active in alternate screen mode when the foreground application
+does not itself request mouse control. The wheel scrolling speed can be set by
+the
+.Ic mouse-wheel-speed
+option which also effects copy- and choice-modes.
+The Shift-modifier causes scrolling to slow down to one line for each wheel
+scroll, holding Ctrl or Alt/Meta raises speed exponentially.
.Sh COMMANDS
This section contains a list of the commands supported by
.Nm .
@@ -2429,6 +2448,10 @@ window.
.Op Ic on | off
.Xc
If enabled, request mouse input as UTF-8 on UTF-8 terminals.
+.It Ic mouse-wheel-speed Ar number
+The number of lines scrolled per wheel event. Holding Ctrl or Alt/Meta
modifiers
+exponentiates speed by the same factor, i.e. up to ^3.
+The default is 3.
.It Ic pane-active-border-style Ar style
Set the pane border style for the currently active pane.
For how to specify
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users