Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
314 views
in Technique[技术] by (71.8m points)

Ubuntu - change tmux 1.8 to tmux-next 1.9


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Just have installed tmux 2.1 on Ubuntu Server and faced the same problem. The solution for me is to delete all those unknown options and add those lines instead:

 set -g mouse-utf8 on
 set -g mouse on

Now in tmux 2.1 I can choose a pane, a window and resize everything with a mouse as it was in tmux 1.8

MOUSE SUPPORT section of 'man tmux':

"The default key bindings allow the mouse to be used to select and resize panes, to copy text and to change window using the status line. These take effect if the mouse option is turned on."


UPDATE (since there are a lot of questions):

0 Install:

brew cask install easysimbl

1 Download .dmg file here: https://bitheap.org/mouseterm/

2 Execute:

cd /Volumes/MouseTerm && cp -r MouseTerm.bundle /Library/Application Support/SIMBL/Plugins

3 Add this to your .tmux.conf file:

set -g mouse-utf8 on
set -g mouse on
bind -n WheelUpPane   select-pane -t= ; copy-mode -e ; send-keys -M
bind -n WheelDownPane select-pane -t= ;                 send-keys -M

4 Reload tmux

5 Scroll!!!1

I hope this will help. Works for me on iTerm 2/OS X El Capitan/tmux-2.1


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...