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