Why are random letters inserted in my tmux session?

Why are random letters inserted in my tmux session?

  • Sometimes when I use the mouse, or press and hold a movement key in tmux, random characters are inserted. For example, when I press the left movement key D is often inserted. A left mouse click often results in "[M#§T" - Does anyone know why this is? I'm using tmux-1.6, and I get these errors over an SSH session & using mobaXterm on Windows 7. Thanks.

  • Answer:

    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.

Jonatan at Super User Visit the source

Was this solution helpful to you?

Other answers

I had the same problem on Mac OS X and iTerm2. I filed it as a bug with the iTerm2 maintainers, but was never able to get a good log file to submit to them. In the end, I just disabled tmux's mouse support with mode-mouse off. Your question leads me to believe that this may be a tmux issue after all. I would file a bug report with tmux and see where that leads.

chepner

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.