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