I have not experienced any problems selecting and copying text in tmux with a mouse after setting set -g mouse on.
set -g mouse on
If you want to emulate some terminal features like "auto copy selected text", you can set the additional tmux setting:
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "<clipboard_program>"
Where <clipboard_program> on linux can be something like xclip and on mac would be pbcopy.
<clipboard_program>
xclip
pbcopy
From this point on, you can use the mouse to click-and-drag selection over text and once you let go, tmux will automatically copy to system clipboard.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have not experienced any problems selecting and copying text in tmux with a mouse after setting
set -g mouse on
.If you want to emulate some terminal features like "auto copy selected text", you can set the additional tmux setting:
Where
<clipboard_program>
on linux can be something likexclip
and on mac would bepbcopy
.From this point on, you can use the mouse to click-and-drag selection over text and once you let go, tmux will automatically copy to system clipboard.