Copy from Berkano Overlay
[otih-overlay.git] / app-misc / screen / files / .svn / text-base / screenrc.svn-base
blob6eec0328de8141528c4172e1d609d65e9600a22c
1 # Copyright 1999-2005 Gentoo Foundation  
2 # Distributed under the terms of the GNU General Public License v2  
3
4 # /etc/screenrc
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
10 # settings.
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 # ==============================================================================
22 # SCREEN SETTINGS
23 # ==============================================================================
25 # ESCAPE - the COMMAND CHARACTER
26 # ===============================================================
27 # escape ^aa  # default
28 # escape ^pp  # suggested binding for emacs users
31 # PASSWORD
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"
42 # VARIABLES
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.
63 # Requires suid-root.
64   multiuser off                         
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.
85 # shell                 zsh
86 # shell                 bash
87 # shell                 ksh
88   shell -$SHELL
90 # shellaka '> |tcsh'
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
106 # zombie "^["
109 # XTERM TWEAKS
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
127 # keys.
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'
141 # xterm-52 tweaks:
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
148 # WYSE TERMINALS
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
159 # OTHER TERMINALS
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
168   termcapinfo linux C8
169 # old rxvt versions also need this
170 # termcapinfo rxvt C8
173 # KEYBINDINGS
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:
191 # break       ^B b
192 # clear       C
193 # colon       :
194 # copy        ^[ [
195 # detach      ^D d
196 # digraph     ^V
197 # displays    *
198 # dumptermcap .
199 # fit         F
200 # flow        ^F f
201 # focus       ^I
202 # hardcopy    h
203 # help        ?
204 # history     { }
205 # info        i
206 # kill        K k
207 # lastmsg     ^M m
208 # license     ,
209 # log         H
210 # login       L
211 # meta        x
212 # monitor     M
213 # next        ^@ ^N sp n
214 # number      N
215 # only        Q
216 # other       ^X
217 # pow_break   B
218 # pow_detach  D
219 # prev        ^H ^P p ^?
220 # quit        \
221 # readbuf     <
222 # redisplay   ^L l
223 # remove      X
224 # removebuf   =
225 # reset       Z
226 # screen      ^C c
227 # select      " '
228 # silence     _
229 # split       S
230 # suspend     ^Z z
231 # time        ^T t
232 # title       A
233 # vbell       ^G
234 # version     v
235 # width       W
236 # windows     ^W w
237 # wrap        ^R r
238 # writebuf    >
239 # xoff        ^S s
240 # xon         ^Q q
241 # ^]  paste .
242 # -   select -
243 # 0   select 0
244 # 1   select 1
245 # 2   select 2
246 # 3   select 3
247 # 4   select 4
248 # 5   select 5
249 # 6   select 6
250 # 7   select 7
251 # 8   select 8
252 # 9   select 9
253 # I   login on
254 # O   login off
255 # ]   paste .
258 # And here are the default bind commands if you need them:
260 # bind A title
261 # bind C clear
262 # bind D pow_detach
263 # bind F fit
264 # bind H log
265 # bind I login on
266 # bind K kill
267 # bind L login
268 # bind M monitor
269 # bind N number
270 # bind O login off
271 # bind Q only
272 # bind S split
273 # bind W width
274 # bind X remove
275 # bind Z reset
277 # Let's remove some dangerous key bindings ...
278   bind k
279   bind ^k
280 # bind .  dumptermcap # default
281   bind .
282 # bind ^\ quit        # default
283   bind ^\
284 # bind \\ quit        # default
285   bind \\
286 # bind ^h ???         # default
287   bind ^h
288 # bind h  hardcopy    # default
289   bind h
291 # ... and make them better.
292   bind 'K' kill
293   bind 'I' login on
294   bind 'O' login off
295   bind '}' history
297 # Yet another hack:
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"
302   bind ^] paste [.]
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.
310   bind = resize =
311   bind + resize +3
312   bind - resize -3
313 # bind _ resize max
315 # attrcolor u "-u b"
316 # attrcolor b "R"
318 # STARTUP SCREENS
319 # ===============================================================
320 # Defines the time screen delays a new message when one message
321 # is currently displayed. The default is 1 second.
322 #  msgminwait 2
324 # Time a message is displayed if screen is not disturbed by
325 # other activity. The dafault is 5 seconds:
326 #  msgwait 2
328 # Briefly show the version number of this starting
329 # screen session - but only for *one* second:
330 #  msgwait 1
331 #  version
333 # Welcome the user:
334 # echo "welcome :-)"
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/
344 # screen 5
345 # screen 6
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 ?
354 # setenv DISPLAY ''