How to make xterm scrolling work with screen

By default, xterm scrolling (with the mouse wheel) doesn’t work with screen. Since screen’s scrollback buffer is so useful (I set mine to 100000 – screen is routinely the largest process on my work machine), wouldn’t it be neat if the mouse wheel scrolled through it instead? It turns out it can, just add the following to your .screenrc:

termcapinfo xterm* ti@:te@

This should work with any xterm compatible terminal, although I’ve only tested it with gnome-terminal and putty. It only deals with the scrollback as xterm saw it, so it won’t work as you expect it to after you’ve just switched screen views. Still, it’s better than nothing and extremely useful if you tend to have windows attached to the same screen view for a long time.

1 comment to How to make xterm scrolling work with screen

  • t0d0r

    Hi and thank you for sharing. I upgraded my system to new version of screen and scrolling stops working for rxvt terminals but this fix my problem.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>