title: how to fix scroll bug in tmux?
body: <p>I know it's sound scary but it's probably not related only to cygwin.
  As you know cygwin uses xterm, and i ssh'ed to another machine where I've launched tmux.
  On one machine I've got mouse enabled for tmux and it works almost fine when scrolling.
  While scrolling a screen with mouse, I've got some random characters appearing in command line, but at least scrolling works, but I've got machine where I can't have my own configuration, so scrolling with keyboard is really buggy. After I go to scroll mode with this shortcut <code>ctrl+b [</code>, I can scroll only through visible area, then everything random characters appears in command line, and it's just doesn't allow me to scroll up at all. and what's the most interesting thing that with enabled mouse, using scrolling with keyboard is fine, well i still got this random chars appearing but it's fine as long as scrolling works.</p>
  
  <p>So my question is how to get rid of random characters which are appearing while scrolling with mouse/keyboard?</p>
  
  <p>my tmux.config where mouse is enabled:</p>
  
  <pre><code>set-option -g mode-mouse on
  set-option -g mouse-select-pane on
  set-option -g mouse-select-window on
  </code></pre>