[Solved] tmux configuration error: tmux.conf: ambiguous option: mouse

Questions

enter tmux
Error: tmux.conf62: ambiguous option: mouse
Found line 62
This is a configuration that tmux supports mouse operation. Because of the error, the tmux window cannot support the mouse selection function.

Reason

tmux version problem

Versions after tmux2.1:

set-option -g mouse on

Versions before tmux2.1:

setw -g mouse-resize-pane on
setw -g mouse-select-pane on
setw -g mouse-select-window on
setw -g mode-mouse on

Solution

Check tmux version

tmux -V

I found that my tmux version is 1.8, so it is a configuration incompatibility problem, change it to the following