mouse wheel isn't scrolling in tmux
-
12-06-2021 - |
Question
It scrolls ok in vim but not in tmux.
I followed suggestions like adding
set -g history-limit 1000
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
setw -g mode-mouse on
set-window-option -g mode-mouse on
to .tmux.conf
but none of them helped
All I get, regardless of the above is history command scrolling.
Solution
Correct command is:
set -g mode-mouse on
You can also add it to your ~/.tmux.conf
OTHER TIPS
Just to link two relevant answers together:
Why does
tmux set -g mouse-mode on
no longer work?
As pointed out in this answer, the option got renamed since tmux version 2.1 to:
tmux set -g mouse on
To find your local tmux version, just run tmux -V
.
set -g mouse on
Just like this if it's going in your ~/.tmux.conf
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow