tmux 2.1 之后,启用鼠标滚动支持的命令
查看当前 tmux 版本
tmux -V
set -g mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
可以修改 ~/.tmux.conf
,这样不用每个 session 都执行这个命令
顺便说一句,可以多人实时共享 session
Reference
https://stackoverflow.com/questions/7798103/how-to-enable-scrolling-in-tmux-panels-with-mouse-wheel