How to prevent gnu screen capturing the mouse?

7

1

I want to use local scrollback on my terminal, whilst using gnu screen. That's because my network connection is incredibly slow, so using screen's scrollback is very slow. Local scrollback is much better.

This works, using "termcapinfo xterm* ti@:te@" in my .screenrc.

However, the mouse is mapped to screen's 'up'/'down' cursor keys, rather than being mapped to my local terminal scroll. Why? When screen is not running in the remote ssh session, using the mouse to scroll works just fine. But it seems like somehow gnu screen is telling my local terminal to just send it the mouse wheel commands, and ignore them itself?

Hugh Perkins

Posted 2012-10-10T04:26:08.107

Reputation: 531

Answers

1

Press Ctrl+A on the keyboard and press Esc.

Press the Up and Down arrow keys or the PgUp and PgDn keys to scroll through previous output.

Press Esc to exit scrollback mode.

In screen it is done this way because each virtual terminal has its own scrollback buffer.

So I don't think you'll be able to do it the way you want to do it using screen. I have heard that it is possible to use the mouse to scroll using byobu instead of screen. Frankly either byobu or tmux are better IMHO. I prefer tmux, never tried to scroll in it though.

dtigue

Posted 2012-10-10T04:26:08.107

Reputation: 19

0

Why you don't try just uninstall the gps2 package? It's the default package to manage mouse copy and paste using mouse at the xterm.

mario ruiz

Posted 2012-10-10T04:26:08.107

Reputation: 283

xterm can copy and paste itself but the question is about scrollback controlled by a mouse.Does gpsd really handle this? – pabouk – 2013-11-19T00:39:16.693