In Putty, you set the number of lines of scrollback in the Configuration window that appears when you launch the program. You can turn it down to zero or crank it up. XTerm and rxvt, et al have similar features from their options/config menu. screen -h (num) ---- Specifies the history scrollback buffer to be num lines high.
also, you can permanently set this via the following: When screen is invoked, it executes initialization commands from the files "/usr/local/etc/screenrc" and ".screenrc" in the user's home directory. These are the "programmer's defaults" that can be overridden in the following ways: for the global screenrc file screen searches for the environment variable $SYSSCREENRC (this override feature may be disabled at compile-time). The user specific screenrc file is searched in $SCREENRC, then $HOME/.screenrc. The command line option -c takes precedence over the above user screenrc files.
Commands in these files are used to set options, bind functions to keys, and to automatically establish one or more windows at the begin- ning of your screen session. Commands are listed one per line, with empty lines being ignored. A command's arguments are separated by tabs or spaces, and may be surrounded by single or double quotes. A `#' turns the rest of the line into a comment, except in quotes. Unintel- ligible lines are warned about and ignored. Commands may contain ref- erences to environment variables. The syntax is the shell-like "$VAR " or "${VAR}". Note that this causes incompatibility with previous screen versions, as now the '$'-character has to be protected with '' if no variable substitution shall be performed. A string in single-quotes is also protected from variable substitution.
Two configuration files are shipped as examples with your screen dis- tribution: "etc/screenrc" and "etc/etcscreenrc". They contain a number of useful examples for various commands.
http://www.hmug.org/man/1/screen.html
Brian Kelsay
"Jonathan Hutchins" <> 11/27/04 11:35PM >>>
Regarding some recent discussion of getting a convenient scrollback buffer working with screen in an Xterm: I notice that Ctrl-PgUp works fine in Putty under windows.