User:Feixie/Screen

Example
vbell off startup_message off defscrollback 100000 hardstatus alwayslastline "%h" hardstatus string '%{= kG}%-Lw%{=r wB}%50> %n-%f %t%{= kG}%+Lw%< * %{= kG}%-=%c:%s%{-}' altscreen on bind ` windowlist -b bindkey -k k1 select 1 bindkey -k k2 select 2 bindkey -k k3 select 3 bindkey -k k4 select 4 bindkey -k k5 select 5 bindkey -k k6 select 6 bindkey -k k7 select 7 bindkey -k k8 select 8 bindkey -k k9 select 9 bindkey -k F1 select 0 bindkey "^[[C" next bindkey "^[[D" prev bindkey "^?" stuff ^H bindkey "^?" stuff "^?" screen -t bxsmon     1 screen -t z@box 2 screen -t z@box 3 ssh box screen -t name 4 screen -t COMPILE     5 ssh box screen -t 0

key mapping

 * keypress. keypress -> scan code
 * windows. scancode -> VK
 * putty. VK -> sequence code (^?)
 * screen. mapping such as ^? -> ^H (bindkey "^?" stuff ^H)
 * term driver. translate according to termcap file or terminfo file. /etc/termcap.
 * stty -a (erase = ^?)
 * stty erase ^H

Q & A
try 'TERM=screen screen'
 * backspace is not working after reattach to detached screen?