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