see http://sunsite.utk.edu/gnu/screen/screen_toc.html for a comprehensive guide

( C-x means CTRL+x)

Config file (~/.screenrc) stuff

Put in these lines to bind the function keys to switching windows, and makine the F11 key the same as 'CTRL-A'

bindkey -k F1 command
bindkey -k k1 select 0
bindkey -k k2 select 1
bindkey -k k3 select 2
bindkey -k k4 select 3
bindkey -k k5 select 4
bindkey -k k6 select 5
bindkey -k k7 select 6
bindkey -k k8 select 7
bindkey -k k9 select 8

You need this line to make backspace work properly on linux. Otherwise, backspace becomes CTRL-H, which causes the help window to pop every in emacs whenver you hit backspace.

bindkey -k kb stuff "\177"

Command line stuff

screen -ls - lists all screen sessions (in case you detach one) screen -wipe - wipes out any old sessions

Command Does
C-a C-b Send a break to window
C-a A Allow the user to enter a name for the current window.
C-a C Clear the screen.
C-a n/C-n/space Go to next window
C-a p/C-p/backspace Go to previous window
C-a c; C-a C-c Create a new window with a shell and switch to that window.
C-a C-g Toggles screen's visual bell mode. Darn handy
C-a k; C-a C-k Destroy current window. maybe when it gets stuck?
C-a N Show the number (and title) of the current window.
C-a w; C-a C-w Show a list of windows
C-a ? Show key bindings.
C-a \ Kill all windows and terminate screen.
C-a [ Enters copy mode. Press space at start & end of selection. Then do C-a ] to paste. Handy!

-- MattWalsh - 17 Jan 2002

Topic revision: r4 - 08 Apr 2002 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback