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