If you're a frequent user of GNU screen on your Mac, you are probably tired of using ctrl-a [ to enter scrollback mode. Adding the following lines to the .screenrc configuration file in your home directory in order to scroll with your mouse:
defscrollback 5000
termcapinfo xterm* ti@:te@

Doesn't seem to work for me, I added those entries to my .screenrc and restarted screen. Scrolling with the scrollbar still goes to the terminal scrollback buffer, not the screen(1) scrollback buffer. Wonder what I'm missing?
Works on my computer :-)
Thanks Phil for tweeting about this. Not knowing about this was the main reason I end up rarely using screen. Now I can use it much more (just have to remember to remap ^A since I use that keystroke all time (Emacs muscle memory)
Hi Scott, Thanks for the tip.
Any idea how to get this working with iTerm/iTerm2 as well ? doesn't seem to work here ..
What output do you get from `echo $TERM` ?
That's:
screen-256color-bce