I am using tmux (version 2.3) and I have only one option in my .tmux.conf file:
set -g mouse on
I then follow the following steps to reproduce:
1) open up tmux 2) split into two vertical panes 3) move the cursor to the left pane 4) select some amount of text from multiple lines in left pane 5) immediately after letting go of the left mouse button when making the selection, an EQUAL amount of text in size to the selection, of gibberish characters, is pasted into the right hand pane overwriting whatever was previously on display on the right.
If I then click and select in the right pane, then the right pane reverts back and shows what it previously was showing. And again, the same thing happens... selecting text in the right pane, now causes a equal size selection of gibberish to overwrite the left hand pane.
Is this a bug? I can reproduce this easily. Does anyone else experience this or have a workaround?
I have attached a picture showing this behavior (in this case in the picture, only 1 line of gibberish shows up after selecting on the left hand side).
This is because you are using a terminal that claims to be xterm - so you have TERM=xterm
outside tmux - but does not support the OSC 52 clipboard escape sequence.
You can either turn off the set-clipboard
option in tmux (set -g set-clipboard off
) to prevent it trying to use this sequence, or change to use the right TERM
for your terminal outside tmux.