tmux set -g mouse-mode on doesn't work

David says Reinstate Monica picture David says Reinstate Monica · Aug 6, 2012 · Viewed 154.2k times · Source

I've been looking around and people say that putting

set -g mouse-mode on

should let you scroll through the terminal output when running tmux. However, after both putting this in my ~/.tmux.conf file and saying tmux set -g mouse-mode on when in a tmux session, nothing changes. When I scroll I still get outside of tmux like scrolling in vim with default settings.

Anyone know why this is?

Answer

Graham picture Graham · Oct 26, 2015

So this option has been renamed in version 2.1 (18 October 2015)

From the changelog:

 Mouse-mode has been rewritten.  There's now no longer options for:
    - mouse-resize-pane
    - mouse-select-pane
    - mouse-select-window
    - mode-mouse

  Instead there is just one option:  'mouse' which turns on mouse support

So this is what I'm using now in my .tmux.conf file

set -g mouse on