How to enable scrolling in tmux panels with mouse wheel?

mart7ini picture mart7ini · Oct 17, 2011 · Viewed 59.1k times · Source

Need to enable scrolling into tmux panels with mouse wheel. How can I get that tips? Can I use it (if its exist of course) with mouse-select-pane on option?

Answer

dm4 picture dm4 · Nov 11, 2011

Origin Answer (deprecated)

Try this:

setw -g mode-mouse on

It can be used with the mouse-select-pane on and mouse-select-window on options.

Update

After tmux 2.1, mode-mouse option is no longer available. You should now use:

set -g mouse on

to capture mouse event.