Why are random characters inserted into my tmux session?

Solution 1:

I have been running into this problem also (my terminal being terminator), and found the comment about the UTF8 mouse helped. I was actually able to continue using my current terminal program with tmux set mouse-utf8 off.

Which seems to have solved the problem. I've set this in my ~/.tmux.conf accordingly.

The entry in tmux.conf should look like this: set -g mouse-utf8 off, with the -g global switch (use the option for all sessions).

Solution 2:

I found that the problem is with the terminal, and not tmux. Terminals need to support "utf8 mouse", and if they don't this is the symptoms experienced. Switching to putty or uxterm solved the issue for me.