I have the following in my .tmux.conf file:
set -g mode-mouse on
set-window-option -g mode-mouse copy-mode
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
In all running sessions, I used C-b :source-file
to source this file, and also tried detaching and re-attaching, as well as killing sessions and just launching new ones.
Regardless, at my xterm terminal prompt within an attached session, scrolling with the mouse wheel produces things like this:
user@host ~ $ `H)`H)aH)aH)
and scrolling does not occur.
I am using Ubuntu 12.04. I am using MobaXterm to access a terminal from a Windows machine (this unfortunately cannot be changed). I am using tmux version 1.6.
I've already looked at the following links for solutions to this problem, and none were able to offer any help or clarifying remarks.
Best Answer
I struggled with this problem for a long time as well. Most of the tips I read online didn't help, until I used this.
Put this in .tmux.conf: