Quick reference: screen
more from
info
Jan 27, 06
Since I've started using screen again (something I haven't used since college), I'm posting my .screenrc and keyboard shortcuts, both as personal reference and possible use by others. When I invoke screen from a terminal window, it will automatically set up a few different locations for me so it's ready to go right away.
This is my .screenrc:
# disable startup message when invoking screen
startup_message off
# automatically set up some custom screens
screen -t one /path/to/your/bin/.screen_setupone
screen -t two /path/to/your/bin/.screen_setuptwo
# include screen info across bottom of window
hardstatus alwayslastline
"%{-b bw}%-w%{+b bw}%50>%n %t%{-b bw}%+w%<"
Here is .screen_setupone:
(cd ~/path/to/somewhere/interesting/; tcsh)
and .screen_setuptwo:
(cd ~/path/to/somewhere/else; tcsh)
And here are the most useful commands:
screen Invoke a new screen session
ctrl-a c Create a new window
ctrl-a ctrl-a Toggle between windows
ctrl-a n Switch to next window
ctrl-a p Switch to previous window
ctrl-a " List all windows
ctrl-a A Name the current window
ctrl-a ctrl-\ Exit and kill all windows