gnu screen - mouse does not work in nested screen session

Posted by Matthew on Super User See other posts from Super User or by Matthew
Published on 2012-09-28T20:53:18Z Indexed on 2012/09/28 21:40 UTC
Read the original article Hit count: 225

Filed under:
|
|
|

I started a screen session inside another screen session, both on my local machine. This is using cygwin, but I don't think it matters. I have tried via ssh to a real unix machine but the behaviour is the same.

Mouse works great in the first screen session, I'm able to open vim with :set mouse=a and I can click to move the cursor or switch tabs, and the mouse wheel scrolls. But in the nested session it does not work, mouse is only useful for selecting terminal text that gets put in the clipboard, but is not able to interact with vim.

I want this to work because I usually work with a local screen session, then ssh to a remote server and have a remote screen session running too (hence the nesting) and I like to scroll swiftly in vim by using the mouse wheel.

Can anyone tell me why the mouse works in the first layer of screen but not in the second, nested screen session, and how I can make it work?

Thanks in advance,

Matthew

© Super User or respective owner

Related posts about unix

Related posts about terminal