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