Tresser
Tresser

Reputation: 63

how to disable the scroll function when I use the tmux?

Tmux uses the scroll to find the history commands which bothers me too much. How to disable this function? I have tried to use "set mouse on", but it gives me another problem. I just want to disable my mouse all the time, with the scroll leaves its original usage.

Upvotes: 6

Views: 5530

Answers (2)

Yichang Wu
Yichang Wu

Reputation: 61

If you are using iterm2 or similar terminal, just uncheck the following functionality.
Scroll wheel sends arrow keys when in alternate screen mode.

Upvotes: 0

jeremysprofile
jeremysprofile

Reputation: 11425

Tmux no longer has multiple options for mouse mode, there is just mouse on or off (assuming a recent version of tmux).

If you want to use the mouse, including the scroll wheel, for anything except scrolling history, mouse mode must be on (set -g mouse on). Turning on the mouse should not prevent you from not using your mouse to accomplish things; the default tmux key functionality remains.

Upvotes: 5

Related Questions