Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 366 lines (308 sloc) 10.804 kb
d339e3f1 » Matthew Gordon
2009-03-13 this is waaaaaayyyyyyyyyyyyy not the first commit, but converting the…
1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 #
4 # /etc/screenrc
5 #
6 # This is the system wide screenrc.
7 #
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.
11 #
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.
15 #
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. Others examples:
18 # http://www.math.fu-berlin.de/~guckes/screen/config.php3
19 #
20 #
21
22 # ==============================================================================
23 # SCREEN SETTINGS
24 # ==============================================================================
25
26 # ESCAPE - the COMMAND CHARACTER
27 # ===============================================================
28 # escape ^aa # default
29 # escape ^pp # suggested binding for emacs users
30
31
32 # PASSWORD
33 # ===============================================================
34 # This commands sets the *internal* password for the screen session.
35 # WARNING!! If this is set then a "lock" command will only let you in to the
36 # session after you enter the user's account password and then *also*
37 # the internal password for that session. This gives additional safety but,
38 # if you forget the internal password then you cannot resume your session.
39 # Use :password to generate a password
40 # password ODSJQf.4IJN7E # "1234"
41
42
43 # VARIABLES
44 # ===============================================================
45 # No annoying audible bell, using "visual bell"
46 # vbell on # default: off
47 # vbell_msg " -- Bell,Bell!! -- " # default: "Wuff,Wuff!!"
48
49 # Automatically detach on hangup.
50 autodetach on # default: on
51
52 # Don't display the copyright page
53 startup_message off # default: on
54
55 # Uses nethack-style messages
56 # nethack on # default: off
57
58 # Affects the copying of text regions
59 crlf off # default: off
60
61 # Enable/disable multiuser mode. Standard screen operation is singleuser.
62 # In multiuser mode the commands acladd, aclchg, aclgrp and acldel can be used
63 # to enable (and disable) other user accessing this screen session.
64 # Requires suid-root.
65 multiuser off
66
67
68 #caption always "%3n %t%? @%u%?%? [%h]%?%=%c:%s"
69 #caption always "%{=b wk} %D %d.%m %c | %-w%{=br}%n %t%{-}%+w "
70 #caption always "%{=b}%?%F%:%45=%n*%f %t%?%?%F%{r}%:%{skk}%?%H%?%F%{-}%? %L=%-Lw%45L>%?%F%{g}%?%n*%f %t%?%F%{-}%?%+Lw%-17=%?%F%{y}%?%c %d.%m.%Y%?"
71
72 # xterm scrollbar should work with screen
73 # also for scroll wheel
74 termcapinfo rxvt ti@:te@
75 termcapinfo xterm ti@:te@
76 termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
77 termcapinfo rxvt 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
78
79
80 # Change default scrollback value for new windows
81 defscrollback 100000 # default: 100
82
83 # Define the time that all windows monitored for silence should
84 # wait before displaying a message. Default 30 seconds.
85 silencewait 15 # default: 30
86
87 # bufferfile: The file to use for commands
88 # "readbuf" ('<') and "writebuf" ('>'):
89 # bufferfile $HOME/.screen_exchange
90 #
91 # hardcopydir: The directory which contains all hardcopies.
92 # hardcopydir ~/.hardcopy
93 # hardcopydir ~/.screen
94 #
95 # shell: Default process started in screen's windows.
96 # Makes it possible to use a different shell inside screen
97 # than is set as the default login shell.
98 # If begins with a '-' character, the shell will be started as a login shell.
99 # shell zsh
100 # shell bash
101 # shell ksh
102 shell -$SHELL
103
104 # shellaka '> |tcsh'
105 # shelltitle '$ |bash'
106
107 # emulate .logout message
108 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
109
110 # caption always " %w --- %c:%s"
111 # caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
112
113 # advertise hardstatus support to $TERMCAP
114 # termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
115
116 # set every new windows hardstatus line to somenthing descriptive
117 # defhstatus "screen: ^En (^Et)"
118
119 # don't kill window after the process died
120 # zombie "^["
121
122
123 # XTERM TWEAKS
124 # ===============================================================
125
126 # xterm understands both im/ic and doesn't have a status line.
127 # Note: Do not specify im and ic in the real termcap/info file as
128 # some programs (e.g. vi) will not work anymore.
129 termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
130 terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
131
132 # 80/132 column switching must be enabled for ^AW to work
133 # change init sequence to not switch width
134 termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
135
136 # Make the output buffer large for (fast) xterms.
137 # termcapinfo xterm* OL=10000
138 termcapinfo xterm* OL=100
139
140 # tell screen that xterm can switch to dark background and has function
141 # keys.
142 termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
143 termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
144 termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
145
146 # special xterm hardstatus: use the window title.
147 termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
148
149 #terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
150 termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
151
152 # emulate part of the 'K' charset
153 termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
154
155 # xterm-52 tweaks:
156 # - uses background color for delete operations
157 termcapinfo xterm* be
158
159
160 # WYSE TERMINALS
161 # ===============================================================
162
163 #wyse-75-42 must have flow control (xo = "terminal uses xon/xoff")
164 #essential to have it here, as this is a slow terminal.
165 termcapinfo wy75-42 xo:hs@
166
167 # New termcap sequences for cursor application mode.
168 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
169
170
171 # OTHER TERMINALS
172 # ===============================================================
173
174 # make hp700 termcap/info better
175 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@'
176
177 # Extend the vt100 desciption by some sequences.
178 termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
179 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
180 termcapinfo linux C8
181 # old rxvt versions also need this
182 # termcapinfo rxvt C8
183
184
185 # KEYBINDINGS
186 # ==============================================================
187 # The "bind" command assign keys to (internal) commands
188 # SCREEN checks all the keys you type; you type the key
189 # which is known as the "command character" then SCREEN
190 # eats this key, too, and checks whether this key is
191 # "bound" to a command. If so then SCREEN will execute it.
192 #
193 # The command "bind" allows you to chose which keys
194 # will be assigned to the commands.
195 #
196 # Some commands are bound to several keys -
197 # usually to both some letter and its corresponding
198 # control key combination, eg the command
199 # "(create) screen" is bound to both 'c' and '^C'.
200 #
201 # The following list shows the default bindings:
202 #
203 # break ^B b
204 # clear C
205 # colon :
206 # copy ^[ [
207 # detach ^D d
208 # digraph ^V
209 # displays *
210 # dumptermcap .
211 # fit F
212 # flow ^F f
213 # focus ^I
214 # hardcopy h
215 # help ?
216 # history { }
217 # info i
218 # kill K k
219 # lastmsg ^M m
220 # license ,
221 # log H
222 # login L
223 # meta x
224 # monitor M
225 # next ^@ ^N sp n
226 # number N
227 # only Q
228 # other ^X
229 # pow_break B
230 # pow_detach D
231 # prev ^H ^P p ^?
232 # quit \
233 # readbuf <
234 # redisplay ^L l
235 # remove X
236 # removebuf =
237 # reset Z
238 # screen ^C c
239 # select " '
240 # silence _
241 # split S
242 # suspend ^Z z
243 # time ^T t
244 # title A
245 # vbell ^G
246 # version v
247 # width W
248 # windows ^W w
249 # wrap ^R r
250 # writebuf >
251 # xoff ^S s
252 # xon ^Q q
253 # ^] paste .
254 # - select -
255 # 0 select 0
256 # 1 select 1
257 # 2 select 2
258 # 3 select 3
259 # 4 select 4
260 # 5 select 5
261 # 6 select 6
262 # 7 select 7
263 # 8 select 8
264 # 9 select 9
265 # I login on
266 # O login off
267 # ] paste .
268 #
269
270 # And here are the default bind commands if you need them:
271 #
272 # bind A title
273 # bind C clear
274 # bind D pow_detach
275 # bind F fit
276 # bind H log
277 # bind I login on
278 # bind K kill
279 # bind L login
280 # bind M monitor
281 # bind N number
282 # bind O login off
283 # bind Q only
284 # bind S split
285 # bind W width
286 # bind X remove
287 # bind Z reset
288
289 # Let's remove some dangerous key bindings ...
290 bind k
291 bind ^k
292 # bind . dumptermcap # default
293 bind .
294 # bind ^\ quit # default
295 bind ^\
296 # bind \\ quit # default
297 bind \\
298 # bind ^h ??? # default
299 bind ^h
300 # bind h hardcopy # default
301 bind h
302
303 # ... and make them better.
304 bind 'K' kill
305 bind 'I' login on
306 bind 'O' login off
307 bind '}' history
308
309 # Yet another hack:
310 # Prepend/append register [/] to the paste if ^a^] is pressed.
311 # This lets me have autoindent mode in vi.
312 register [ "\033:se noai\015a"
313 register ] "\033:se ai\015a"
314 bind ^] paste [.]
315
316
317 # hardstatus alwaysignore
318 # hardstatus alwayslastline "%Lw"
319
320 # Resize the current region. The space will be removed from or added to
321 # the region below or if there's not enough space from the region above.
322 bind = resize =
323 bind + resize +3
324 bind - resize -3
325 # bind _ resize max
326 #
327 # attrcolor u "-u b"
328 # attrcolor b "R"
329
330 # STARTUP SCREENS
331 # ===============================================================
332 # Defines the time screen delays a new message when one message
333 # is currently displayed. The default is 1 second.
334 # msgminwait 2
335
336 # Time a message is displayed if screen is not disturbed by
337 # other activity. The dafault is 5 seconds:
338 # msgwait 2
339
340 # Briefly show the version number of this starting
341 # screen session - but only for *one* second:
342 # msgwait 1
343 # version
344
345 # Welcome the user:
346 # echo "welcome :-)"
347 # echo "I love you today."
348
349 # Uncomment one/some following lines to automatically let
350 # SCREEN start some programs in the given window numbers:
351 # screen -t MAIL 0 mutt
352 # screen -t EDIT 1 vim
353 # screen -t GOOGLE 2 links http://www.google.com
354 # screen -t NEWS 3 slrn
355 # screen -t WWW 4 links http://www.math.fu-berlin.de/~guckes/
356 # screen 5
357 # screen 6
358
359 # Set the environment variable var to value string. If only var is specified,
360 # you'll be prompted to enter a value. If no parameters are specified,
361 # you'll be prompted for both variable and value. The environment is
362 # inherited by all subsequently forked shells.
363 # setenv PROMPT_COMMAND 'echo -n -e "\033k\033\134"'
364
365 # Don't you want to start programs which need a DISPLAY ?
366 # setenv DISPLAY ''
Something went wrong with that request. Please try again.