To restore the default copy / paste configuration, you need to (at least temporarily) disable mouse support in tmux:
prefix : set -g mouse off
Where prefix is the tmux passkey ( Ctrl + B by default, unless you reprogram it). : starts command mode, and set -g sets the parameter globally.
When mouse mode is disabled, the standard copy / paste functions provided by your operating system work as expected.
Something else you might need is to "maximize" the current area so you can easily copy multiple lines.
If you are working with the old (pre-2.1) version of tmux, you need to use the following:
prefix : set -g mode-mouse off
There is more detailed information and some convenient key bindings to automate all of this:
http://tangledhelix.com/blog/2012/07/16/tmux-and-mouse-mode/
The main point of the article related to the above is an excerpt from .tmux.conf:
# disable mouse control by default - change 'off' to 'on' to enable by default. setw -g mode-mouse off set-option -g mouse-resize-pane off set-option -g mouse-select-pane off set-option -g mouse-select-window off
dr-jan Jul 18 '13 at 13:59 on 2013-07-18 13:59
source share