annotate .screen/joshua @ 235:2b3e169f8182

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