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