Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to enable proper mouse support in GNU screen so that I can switch the focus between split windows using my mouse?

In other words, I'm looking for a mouse-driven alternative to typing 'C-a Tab'.


share|improve this question

3 Answers 3

up vote 1 down vote accepted

I believe that GNU Screen's upstream may have proper mouse support. See Mouse in screen(1) on the Linux console?.

Also check Debian Sid (unstable), since according to the first answer found for the said post, Debian Unstable has the latest version/release thingy of GNU Screen.

This, however, may mean that you'll have to build Screen from source, which in of itself shouldn't be too difficult, but if you've never done this kind of thing before it can be a bit intimidating.

share|improve this answer
Yes! I can confirm this works on Debian testing too. Just insert mousetrack on in ~\.screenrc. –  enrico16 Nov 13 '13 at 19:07
I can also confirm that this sucker definitely works on Mac OS X, it's a bit tricky to compile, feel free to use the homebrew formula I wrote. I'm also planning on writing a build script for unix-like systems in general, but that'll have to wait for a bit. NOTE on Mac OS X, at least for me, I had to specify mousetrack on instead of whatever the other options where, in order to get it work. –  Alexej Magura Nov 13 '13 at 21:34

GNU screen does not use the mouse in any way.
If you want that behaviour, you could try tmux instead. To enable that behaviour in tmux, add the following line to ~/.tmux.conf :

set -g mouse-select-pane on
share|improve this answer
I see, that seems to explain why I can't find this information anywhere. –  enrico16 Aug 8 '13 at 20:44
This is outdated; the latest version of screen does support use of the mouse. –  TheNobleSunfish Jun 12 '14 at 6:31

One can add

mousetrack on

to ~/.screenrc

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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