1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 # This is the system wide screenrc.
8 # You can use this file to change the default behavior of screen system wide
9 # or copy it to ~/.screenrc and use it as a starting point for your own
12 # Commands in this file are used to set options, bind screen functions to
13 # keys, redefine terminal capabilities, and to automatically establish one or
14 # more windows at the beginning of your screen session.
16 # This is not a comprehensive list of options, look at the screen manual for
17 # details on everything that you can put in this file.
21 # ==============================================================================
23 # ==============================================================================
25 # ESCAPE - the COMMAND CHARACTER
26 # ===============================================================
27 # escape ^aa # default
28 # escape ^pp # suggested binding for emacs users
32 # ===============================================================
33 # This commands sets the *internal* password for the screen session.
34 # WARNING!! If this is set then a "lock" command will only let you in to the
35 # session after you enter the user's account password and then *also*
36 # the internal password for that session. This gives additional safety but,
37 # if you forget the internal password then you cannot resume your session.
38 # Use :password to generate a password
39 # password ODSJQf.4IJN7E # "1234"
43 # ===============================================================
44 # No annoying audible bell, using "visual bell"
45 # vbell on # default: off
46 # vbell_msg " -- Bell,Bell!! -- " # default: "Wuff,Wuff!!"
48 # Automatically detach on hangup.
49 autodetach on # default: on
51 # Don't display the copyright page
52 startup_message off # default: on
54 # Uses nethack-style messages
55 # nethack on # default: off
57 # Affects the copying of text regions
58 crlf off # default: off
60 # Enable/disable multiuser mode. Standard screen operation is singleuser.
61 # In multiuser mode the commands acladd, aclchg, aclgrp and acldel can be used
62 # to enable (and disable) other user accessing this screen session.
66 # Change default scrollback value for new windows
67 defscrollback 1000 # default: 100
69 # Define the time that all windows monitored for silence should
70 # wait before displaying a message. Default 30 seconds.
71 silencewait 15 # default: 30
73 # bufferfile: The file to use for commands
74 # "readbuf" ('<') and "writebuf" ('>'):
75 bufferfile $HOME/.screen_exchange
77 # hardcopydir: The directory which contains all hardcopies.
78 # hardcopydir ~/.hardcopy
79 # hardcopydir ~/.screen
81 # shell: Default process started in screen's windows.
82 # Makes it possible to use a different shell inside screen
83 # than is set as the default login shell.
84 # If begins with a '-' character, the shell will be started as a login shell.
91 # shelltitle '$ |bash'
93 # emulate .logout message
94 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
96 # caption always " %w --- %c:%s"
97 # caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
99 # advertise hardstatus support to $TERMCAP
100 # termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
102 # set every new windows hardstatus line to somenthing descriptive
103 # defhstatus "screen: ^En (^Et)"
105 # don't kill window after the process died
110 # ===============================================================
112 # xterm understands both im/ic and doesn't have a status line.
113 # Note: Do not specify im and ic in the real termcap/info file as
114 # some programs (e.g. vi) will not work anymore.
115 termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
116 terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
118 # 80/132 column switching must be enabled for ^AW to work
119 # change init sequence to not switch width
120 termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
122 # Make the output buffer large for (fast) xterms.
123 # termcapinfo xterm* OL=10000
124 termcapinfo xterm* OL=100
126 # tell screen that xterm can switch to dark background and has function
128 termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
129 termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
130 termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
132 # special xterm hardstatus: use the window title.
133 termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
135 #terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
136 termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
138 # emulate part of the 'K' charset
139 termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
142 # - uses background color for delete operations
143 termcapinfo xterm* be
145 # Do not use xterm's alternative window buffer, it breaks scrollback (see bug #61195)
146 termcapinfo xterm|xterms|xs ti@:te=\E[2J
149 # ===============================================================
151 #wyse-75-42 must have flow control (xo = "terminal uses xon/xoff")
152 #essential to have it here, as this is a slow terminal.
153 termcapinfo wy75-42 xo:hs@
155 # New termcap sequences for cursor application mode.
156 termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J
160 # ===============================================================
162 # make hp700 termcap/info better
163 termcapinfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
165 # Extend the vt100 desciption by some sequences.
166 termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
167 terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC
169 # old rxvt versions also need this
170 # termcapinfo rxvt C8
174 # ==============================================================
175 # The "bind" command assign keys to (internal) commands
176 # SCREEN checks all the keys you type; you type the key
177 # which is known as the "command character" then SCREEN
178 # eats this key, too, and checks whether this key is
179 # "bound" to a command. If so then SCREEN will execute it.
181 # The command "bind" allows you to chose which keys
182 # will be assigned to the commands.
184 # Some commands are bound to several keys -
185 # usually to both some letter and its corresponding
186 # control key combination, eg the command
187 # "(create) screen" is bound to both 'c' and '^C'.
189 # The following list shows the default bindings:
258 # And here are the default bind commands if you need them:
277 # Let's remove some dangerous key bindings ...
280 # bind . dumptermcap # default
282 # bind ^\ quit # default
284 # bind \\ quit # default
286 # bind ^h ??? # default
288 # bind h hardcopy # default
291 # ... and make them better.
298 # Prepend/append register [/] to the paste if ^a^] is pressed.
299 # This lets me have autoindent mode in vi.
300 register [ "\033:se noai\015a"
301 register ] "\033:se ai\015a"
305 # hardstatus alwaysignore
306 # hardstatus alwayslastline "%Lw"
308 # Resize the current region. The space will be removed from or added to
309 # the region below or if there's not enough space from the region above.
319 # ===============================================================
320 # Defines the time screen delays a new message when one message
321 # is currently displayed. The default is 1 second.
324 # Time a message is displayed if screen is not disturbed by
325 # other activity. The dafault is 5 seconds:
328 # Briefly show the version number of this starting
329 # screen session - but only for *one* second:
335 # echo "I love you today."
337 # Uncomment one/some following lines to automatically let
338 # SCREEN start some programs in the given window numbers:
339 # screen -t MAIL 0 mutt
340 # screen -t EDIT 1 vim
341 # screen -t GOOGLE 2 links http://www.google.com
342 # screen -t NEWS 3 slrn
343 # screen -t WWW 4 links http://www.math.fu-berlin.de/~guckes/
347 # Set the environment variable var to value string. If only var is specified,
348 # you'll be prompted to enter a value. If no parameters are specified,
349 # you'll be prompted for both variable and value. The environment is
350 # inherited by all subsequently forked shells.
351 # setenv PROMPT_COMMAND 'echo -n -e "\033k\033\134"'
353 # Don't you want to start programs which need a DISPLAY ?