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