comparison .screen/smn @ 148:5b7d42a446c3

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