Ubuntu – Why does tmux/byobu fill the screen with garbage characters when I copy a selection


When I copy a selection from tmux with a window split, my screen fills up with garbage characters. Depending on the size of the selection, it could be a lot, or just one line. The following images demonstrate:

Selection Area

Then after hitting to make the selection:

enter image description here

Notice all the garbage characters on the right pane.

How do I get rid of this behavior?

Best Answer

There is an option set-clipboard that will try to copy your selection to the x-clipboard with an escape sequence.

:set-option -s set-clipboard off

gnome-terminal does not support this method of using the clipboard, which is the default terminal in Ubuntu.