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