As a follow up to that, i find those two thing quite useful with screen:
screen init file ( ~/.screenrc)
- Code: Select all
bell_msg "Bell in window %n^G"
caption always "%{=r}%?%F%{+bu}%?%H | %-Lw%{-r}%n*%f %t%{+r}%+Lw | %h"
defnonblock 1
defscrollback 2500
markkeys k=^p:j=^n:h=^b:l=^f:0=^a:\$=^e:^d=^v
startup_message off
vbell off
basicly it makes 'beeps' really beep, enables a status line that always shows which windows are there and on which computer you are logged into, enables some emacs like keys and makes sure a crashing ssh connection does not hang the screen session.
and a little script i use to startup screen ( ~/bin/screenn )
- Code: Select all
#! /bin/sh
exec screen -A -x -RR -ln "$@"
It starts screen, no matter what.. either it creates a new session, if there already is one, it attaches to the first one (unless you use an extra -S name option), it also attaches in multidisplay mode so that you can have several screens attached to the same session and last but not least it resizes the running session and NOT the xterm window if they differ in size..