This is an old revision of the document!
~/.screenrc: # allow people to attach to my screen
# allow the following people full control
addacl root,aledesma,mymanager,mycoworker1,mycoworker2 aclchg aledesma +rwx “#?”
# allow everyone readonly access
aclchg *,!aledesma -rwx “#?”
# setup 10,000 lines of available scrollback — copy/paste
# fix scrollback in putty
termcapinfo xterm* ti@:te@
To enter scrollback hit C-a [. A status line will indicate that you've entered copy mode. To exit scrollback mode, hit the escape button.
Navigating in scrollback mode will be pretty familiar to VI users. Here are some of the most common navigation keys (taken from the screen manpage):
h - Move the cursor left by one character j - Move the cursor down by one line k - Move the cursor up by one line l - Move the cursor right by one character 0 - Move to the beginning of the current line $ - Move to the end of the current line. G - Moves to the specified line (defaults to the end of the buffer). C-u - Scrolls a half page up. C-b - Scrolls a full page up. C-d - Scrolls a half page down. C-f - Scrolls the full page down.
I often use the page up and page down commands to quickly scroll back through the window's history.
In addition to traditional navigation, Screen allows you to search the scrollback buffer using the following commands:
/ - Search forward ? - Search backward
Search is a very useful feature. For example, you could run a script and search for keywords in the output (such as Error), without having to redirect the output.