unknown option: mode-mouse with iterm, tmux

2018-06-24 18:33:26

Reset my computer and iterm2,tmux now complaining about my .tmux.conf having

setw -g mode-mouse on

set -g mouse-select-pane on

set -g mouse-resize-pane on

set -g mouse-select-window off

set -g default-terminal "screen-256color"

i.e.

/Users/mdurrant/.tmux.conf:24: unknown option: mode-mouse [0/0]

/Users/mdurrant/.tmux.conf:25: unknown option: mouse-select-pane

/Users/mdurrant/.tmux.conf:26: unknown option: mouse-resize-pane

/Users/mdurrant/.tmux.conf:27: unknown option: mouse-select-window

so I have to comment them out,... but then my mouse doesn't work in tmux which is a pain.

How to enable mouse in iterms2 w/tmux ?

This works on my other osx macbook air ok.

tmux is version 2.1

This looks like a change in tmux in 2.0 -> 2.1

I've replaced

setw -g mode-mouse on

set -g mouse-select-pane on

set -g mouse-resize-pane on

set -g mouse-select-window off

with just

set-option -g mouse on

and everything seems ok

mode-mouse isn't support on

  • This looks like a change in tmux in 2.0 -> 2.1

    I've replaced

    setw -g mode-mouse on

    set -g mouse-select-pane on

    set -g mouse-resize-pane on

    set -g mouse-select-window off

    with just

    set-option -g mouse on

    and everything seems ok

    2018-06-24 19:42:36
  • mode-mouse isn't support on tmux. Try use on ~/.tmux.conf

    set -g mouse on

    and run on terminal

    tmux source-file ~/.tmux.conf

    Work so good on my computer, it can scroll, change panes...

    2018-06-24 20:25:36