Today a friend of mine and future colleague asked me how to use scroll(mouse wheel or synaptic touchpad) in GNU screen and because I was busy fixing other things I told him is doable but I didn’t told him ho to do it :-) The fix does not work well when you are using multiple windows inside a single screen especially when using split mode but for the times you use one window per screen its pretty handy.
Add the following to your .screenrc :
termcapinfo xterm|xterms|xs|rxvt ti@:te@
And for MacOSX Terminal app, I found that the above fix doesn’t work and after few minutes of reading I come up with this fix :
termcapinfo xterm* ti@:te@