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.
Post a Comment