Screenrc

configuration file for (gnu) screen, called screenrc
example taken from []

caption always "%{+b rk}$USER@%{wk}%H | %{yk}(load: %l | %{Gk}net: %1`) %-21=%{wk}%D %d.%m.%Y %0c" hardstatus alwayslastline "%{wr}%n%f %t %{kw} | %?%-Lw%?%{wb}%n*%f %t%?(%u)%?%{kw}%?%+Lw%? %{wk}"
 * 1) backtick 1 0 60   /usr/pkg/bin/ip-screen #if the this programm is there

autodetach           on              # default: on  crlf                  off             # default: off deflogin             off             # default: on  hardcopy_append       off             # default: off nethack              on              # default: off startup_message      off             # default: on  vbell                 on
 * 1)  hardstatus alwayslastline "%{bw}%1`%= "
 * 2) detach on hangup
 * 1) defsilence            off             # default: off
 * 2) hardcopy_append       on              # default: off
 * 1) don't display the copyright page
 * 1) no annoying audible bell, please

defscrollback        1000            # default: 100 silencewait          15              # default: 30
 * 1) msgminwait            3               # default: 1

hardcopydir          $HOME/.hardcopy


 * 1) fix the "screen.linux" terminal problem (see Debian BTS #238355 + #239776)
 * 2)  term linux

shell                zsh

sorendition 10 99 # default!
 * 1) "sorendition": set the colors for
 * 2) the "messages" and "text marking"
 * 3) (ie text you mark in copy mode):

activity             "activity in %n (%t) [%w:%s]~"
 * 1) use %n to display the window number and %t for its title:

bell                 "bell     in %n (%t) [%w:%s]~"
 * 1) pass on the "beep" (CTRL-G) by adding a '~':

pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
 * 1) pow_detach_msg:       Message shown when session
 * 2)                       gets power detached.

vbell_msg            " *beep* "
 * 1) vbell_msg:            Message shown when the
 * 2)                       "virtual bell" rings.

bind. bind ^\ bind \\
 * 1) Key bindings
 * 2) Remove some default key bindings by binding
 * 3) them to "nothing" (empty right-hand-side):
 * 4) bind .  dumptermcap # default

bind - command -c select_1n bind -c select_1n 0 select 10 bind -c select_1n 1 select 11 bind -c select_1n 2 select 12 bind -c select_1n 3 select 13 bind -c select_1n 4 select 14 bind -c select_1n 5 select 15 bind -c select_1n 6 select 16 bind -c select_1n 7 select 17 bind -c select_1n 8 select 18 bind -c select_1n 9 select 19 bind -c select_1n - command -c select_2n bind -c select_2n 0 select 20 bind -c select_2n 1 select 21 bind -c select_2n 2 select 22 bind -c select_2n 3 select 23 bind -c select_2n 4 select 24 bind -c select_2n 5 select 25 bind -c select_2n 6 select 26 bind -c select_2n 7 select 27 bind -c select_2n 8 select 28 bind -c select_2n 9 select 29 bind -c select_2n - select -
 * 1) 040126 To be able to select windows with n > 9 ->
 * 2) press "C-a - #" instead of just "C-a #"


 * 1) Use the function keys F11 and F12 to cycle backwards/forwards in
 * 2) the list of existing windows:
 * 3)  bindkey -k F1 prev
 * 4)  bindkey -k F2 next

bind k bind ^k bind. bind ^\ bind \\ bind ^h bind h hardcopy bind 'K' kill bind 'I' login on bind 'O' login off bind '}' history
 * 1) remove some stupid / dangerous key bindings
 * 1) make them better

bind G screen -t 'google'   w3m www.google.com bind H screen -t HeiseTicker w3m www.heise.de/newsticker/pda/data/paket4.html

bind P paste.
 * 1) Paste - use 'P' instead of ']':
 * 2) bind P # unbound by default


 * 1) Yet another hack:
 * 2) Prepend/append register [/] to the paste if ^a^] is pressed.
 * 3) This lets me have autoindent mode in vi.
 * 4)  register [ "\033:se noai\015a"
 * 5)  register ] "\033:se ai\015a"
 * 6)  bind ^] paste [.]

bind X lockscreen
 * 1)      X - a fast way to lock the current screen.

bindkey -t \xb0a stuff "\xe4" bindkey -t \xb0A stuff "\xc4" bindkey -t \xb0o stuff "\xf6" bindkey -t \xb0O stuff "\xd6" bindkey -t \xb0u stuff "\xfc" bindkey -t \xb0U stuff "\xdc" bindkey -t \xb0s stuff "\xdf" msgwait 1 version msgwait 2
 * 1) 030511 Workaround for stupid machines without xmodmap ;-)
 * 1) change back to showing messages
 * 2) for duration of two seconds: