Tmux enables the mouse configuration. Most blogs on the Internet are older, using the configuration before tmux2.1. Finally, I collected this blog, which clearly distinguishes the two versions, thanks.
View the current version of tmux:
tmux -V
(Uppercase V)
Edit the tmux configuration file:
vim ~/.tmux.conf
Version 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
Original link: https://blog.csdn.net/qf0129/article/details/52229067