mouse wheel isn't scrolling in tmux

Michael Durrant picture Michael Durrant · Jun 3, 2012 · Viewed 10.9k times · Source

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.

Answer

user1124415 picture user1124415 · Jun 3, 2012

Correct command is:

set -g mode-mouse on

You can also add it to your ~/.tmux.conf