2009-04-03

LINUX SCREEN

1 OS commands

screen -lssession list
screen -r [session]attach to active session
screen -xattach multiply users to active session
screen -dmS [session] [app]run app without start screen

2 Screen Commands

COMMANDDESCRIPTION
C-a ddeatach
C-a "window list
C-a wwindow list
C-a :number [0-9]change window nr
C-a Achange window name
C-a shift+nshow window nr
C-a cnew window
C-a kkill window
C-a [0-9]go to window nr
C-a [SPC]next window
C-a [BPC]previous window
C-a C-alast active window
C-a [ESC]turn on mode scrollback/copy
[SPC]start/stop buffer copy
C-a ]paste from buffer
C-a ?help
C-a :command line

3 .screenrc

startup_message off
deflogin off
defnonblock 5
termcapinfo xterm*|rxvt* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
termcapinfo xterm*|rxvt* ti@:te@
#defbce "on"
vbell off
altscreen on
bindkey -k F1 prev
bindkey -k F2 next
bind ^v screen -t ROOT su -
hardstatus alwayslastline
hardstatus string '%{= KM}[ %{G}%H %{M}][%= %{c}%?%-Lw%?%{C}(%{C}%n*%f%t%{C})%{c}%?%+Lw%?%? %=%{M}][%{G} %c %{M}]'
defscrollback 1024
screen 0