Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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:

set -g terminal-overrides 'xterm*:smcup@:rmcup@'
share|improve this answer
1  
I mentioned that I tried this and it did not work. It is listed directly in my question above. – Mr. F Oct 8 '13 at 11:23
    
Frustrating when people don't read or ignore content in your question. – dimadima Oct 26 '14 at 18:54

The default scrollback mode is copy-mode, which is activated by ctrl-b [ by default. After typing that you can page up and page down and use arrow keys to scroll back.

I don't have any experience trying to make the mouse do it. But the copy-mode stuff does work, I use it all the time.

The tricky bit is when you leave yourself in copy mode and don't realize it. You can hit q to exit it. I've started cursing at my non-responsive window more than once, only to realize I left tmux in copy mode.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .