After I get disconnected from my tmux session over ssh (I have to use the ssh ~. command to exit), the mouse start displaying control characters like 80;31M65;80;31M65; when I click or turn the wheel.

My internet search told me I am probably still in an alternate screen mode (triggered by tmux ?).

Someone suggested tput rmcup, but this does not work.
Now, the best I can do is close my terminal and open a new one.

Any ideas ?


Mouse is nothing to do with alternate screen, but you could be in alternate screen as well. The "reset" command is the easiest way to fix everything.

  • Indeed, the reset command worked, thanks! – Evann Courdier May 14 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.