comparison .screenrc.pbstops @ 61:d59d16a55494

* Added test to dotfile check which aborts if no keys loaded * Added .screenrc.pbstops for pbstop screen session * Aliases for cses13, 't cses13' and 'tops'
author huston@80426f53-59d1-405d-934b-f07cd76f4a1a
date Mon, 09 Jul 2012 16:57:42 +0000
parents
children 54c3436f3284
comparison
equal deleted inserted replaced
60:c27db9abf42c 61:d59d16a55494
1 # $Id: .screenrc 42 2010-06-17 16:29:11Z huston $
2
3 vbell off
4 bell_msg "^GBell in window %n"
5 defnonblock 5
6 nethack on
7 hardstatus string "%{+b .bw}%-Lw%{+b .rw}%50L>%n%f* %t%?%{+b .cw}(%u)%{-}%?%{-}%+Lw%L< %-20=%{+b ..g} %H%-8= %{+b ..y} %c "
8 hardstatus alwayslastline
9 activity "^GActivity in window %n"
10 zombie qr
11 screen -t orbital 0 ssh -t orbital pbstop
12 screen -t adroit 1 ssh -t adroit pbstop
13 screen -t della 2 ssh -t della pbstop
14 screen -t hecate 3 ssh -t hecate pbstop
15 screen -t sesame 4 ssh -t sesame pbstop
16
17 # The following from the /etc/screenrc that came with screen-4.0.3-1.el5_4.1
18 # with a few lines commented out so they don't interfere with the above. One
19 # note, the 'deflogin' setting causes a complaint on Macs because they don't
20 # use it; but it's only when one starts a screen, and only for a second or
21 # two.
22
23 #
24 # This is an example for the global screenrc file.
25 # You may want to install this file as /usr/local/etc/screenrc.
26 # Check config.h for the exact location.
27 #
28 # Flaws of termcap and standard settings are done here.
29 #
30
31 #startup_message off
32
33 #defflow on # will force screen to process ^S/^Q
34
35 deflogin on
36 #autodetach off
37
38 #vbell on
39 #vbell_msg " Wuff ---- Wuff!! "
40
41 # all termcap entries are now duplicated as terminfo entries.
42 # only difference should be the slightly modified syntax, and check for
43 # terminfo entries, that are already corected in the database.
44 #
45 # G0 we have a SEMI-GRAPHICS-CHARACTER-MODE
46 # WS this sequence resizes our window.
47 # cs this sequence changes the scrollregion
48 # hs@ we have no hardware statusline. screen will only believe that
49 # there is a hardware status line if hs,ts,fs,ds are all set.
50 # ts to statusline
51 # fs from statusline
52 # ds delete statusline
53 # al add one line
54 # AL add multiple lines
55 # dl delete one line
56 # DL delete multiple lines
57 # ic insert one char (space)
58 # IC insert multiple chars
59 # nx terminal uses xon/xoff
60
61 termcap facit|vt100|xterm LP:G0
62 terminfo facit|vt100|xterm LP:G0
63
64 #the vt100 description does not mention "dl". *sigh*
65 termcap vt100 dl=5\E[M
66 terminfo vt100 dl=5\E[M
67
68 #facit's "al" / "dl" are buggy if the current / last line
69 #contain attributes...
70 termcap facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%d;%dr:ic@
71 terminfo facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%p1%d;%p2%dr:ic@
72
73 #make sun termcap/info better
74 termcap sun 'up=^K:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:IC=\E[%d@:WS=1000\E[8;%d;%dt'
75 terminfo sun 'up=^K:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC:IC=\E[%p1%d@:WS=\E[8;%p1%d;%p2%dt$<1000>'
76
77 #xterm understands both im/ic and doesn't have a status line.
78 #Note: Do not specify im and ic in the real termcap/info file as
79 #some programs (e.g. vi) will (no,no, may (jw)) not work anymore.
80 termcap xterm|fptwist hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
81 terminfo xterm|fptwist hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
82
83 # Long time I had this in my private screenrc file. But many people
84 # seem to want it (jw):
85 # we do not want the width to change to 80 characters on startup:
86 # on suns, /etc/termcap has :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:
87 termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
88 terminfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
89
90 #
91 # Do not use xterms alternate window buffer.
92 # This one would not add lines to the scrollback buffer.
93 #termcap xterm|xterms|xs ti=\E7\E[?47l
94 #terminfo xterm|xterms|xs ti=\E7\E[?47l
95
96 #make hp700 termcap/info better
97 termcap 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@'
98 terminfo 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@'
99
100 #wyse-75-42 must have defflow control (xo = "terminal uses xon/xoff")
101 #(nowadays: nx = padding doesn't work, have to use xon/off)
102 #essential to have it here, as this is a slow terminal.
103 termcap wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h
104 terminfo wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h
105
106 #remove some stupid / dangerous key bindings
107 bind ^x
108 bind x
109 bind ^k
110 #bind L
111 bind ^\
112 #make them better
113 bind \\ quit
114 bind K kill
115 #bind I login on
116 #bind O login off
117 bind } history
118 bind X lockscreen
119 #
120 # Example of a user's .screenrc file
121 #
122
123 # This is how one can set a reattach password:
124 # password ODSJQf.4IJN7E # "1234"
125
126 # no annoying audible bell, please
127 #vbell on
128
129 # detach on hangup
130 autodetach on
131
132 # don't display the copyright page
133 startup_message off
134
135 # emulate .logout message
136 pow_detach_msg "Screen session of $LOGNAME $:cr:$:nl:ended."
137
138 # advertise hardstatus support to $TERMCAP
139 # termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
140
141 # make the shell in every window a login shell
142 #shell -$SHELL
143
144 # autoaka testing
145 # shellaka '> |tcsh'
146 # shellaka '$ |sh'
147
148 # set every new windows hardstatus line to somenthing descriptive
149 # defhstatus "screen: ^En (^Et)"
150
151 defscrollback 1000
152
153 # don't kill window after the process died
154 # zombie "^["
155
156 # enable support for the "alternate screen" capability in all windows
157 # altscreen on
158
159 ################
160 #
161 # xterm tweaks
162 #
163
164 #xterm understands both im/ic and doesn't have a status line.
165 #Note: Do not specify im and ic in the real termcap/info file as
166 #some programs (e.g. vi) will not work anymore.
167 termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
168 terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
169
170 #80/132 column switching must be enabled for ^AW to work
171 #change init sequence to not switch width
172 termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
173
174 # Make the output buffer large for (fast) xterms.
175 #termcapinfo xterm* OL=10000
176 termcapinfo xterm* OL=100
177
178 # tell screen that xterm can switch to dark background and has function
179 # keys.
180 termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
181 termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
182 termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
183
184 # special xterm hardstatus: use the window title.
185 termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
186
187 #terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
188 termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
189
190 # emulate part of the 'K' charset
191 termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
192
193 # xterm-52 tweaks:
194 # - uses background color for delete operations
195 termcapinfo xterm* be
196
197 ################
198 #
199 # wyse terminals
200 #
201
202 #wyse-75-42 must have flow control (xo = "terminal uses xon/xoff")
203 #essential to have it here, as this is a slow terminal.
204 termcapinfo wy75-42 xo:hs@
205
206 # New termcap sequences for cursor application mode.
207 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
208
209 ################
210 #
211 # other terminals
212 #
213
214 # make hp700 termcap/info better
215 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@'
216
217 # Extend the vt100 desciption by some sequences.
218 termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
219 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
220 termcapinfo linux C8
221 # old rxvt versions also need this
222 # termcapinfo rxvt C8
223
224
225 ################
226 #
227 # keybindings
228 #
229
230 #remove some stupid / dangerous key bindings
231 bind k
232 bind ^k
233 bind .
234 bind ^\
235 bind \\
236 bind ^h
237 bind h
238 #make them better
239 bind 'K' kill
240 #bind 'I' login on
241 #bind 'O' login off
242 bind '}' history
243
244 # Yet another hack:
245 # Prepend/append register [/] to the paste if ^a^] is pressed.
246 # This lets me have autoindent mode in vi.
247 #register [ "\033:se noai\015a"
248 #register ] "\033:se ai\015a"
249 #bind ^] paste [.]
250
251 ################
252 #
253 # default windows
254 #
255
256 # screen -t local 0
257 # screen -t mail 1 mutt
258 # screen -t 40 2 rlogin server
259
260 # caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
261 ## alternative caption, gives window list, LOGNAME and current date:
262 # caption always "%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw %=%{mk}@%H %{yk}%D %{ck}%M%{wk} %{ck}%d %{gk}%c"
263 # hardstatus alwaysignore
264 # hardstatus alwayslastline "%Lw"
265
266 # Red Hat's normal status line
267 #hardstatus string "[screen %n%?: %t%?] %h"
268
269 # bind = resize =
270 # bind + resize +1
271 # bind - resize -1
272 # bind _ resize max
273 #
274 # defnonblock 1
275 # blankerprg rain -d 100
276 # idle 30 blanker