Merge branch 'scripting-python' (early part) into screen-scripting-soc
[screen-lua.git] / src / .iscreenrc
blob802afbd52d65394efe145742ddc986b57caea369
2 # A sample .screenrc which I use for everyday work. 
4 # some of the commands commented out here, have been moved to 
5 # /local/etc/screenrc
7 # we want no password, right?
8 #password                 # This will ask us for a password.
9 password none             # Same as not even mentioning it.
10 #password 12Bz/9hNlPLZk   # "1234"
11 #password YahtrWblnJw     # ypmatch jnweiger passwd. Well, ... :-)
13 scrollback 200            # we have a 200 lines history buffer
14 markkeys "@=\177:@=^C"    # our mad facit-twist terminal buffer overflow...
15 markkeys "h=^B:l=^F:\$=^E"  # some missing emacs style bindings in copymode
17 echo -n "booting screen"
19 # let it flash, not horn!
20 #vbell on                          # "vbell" don't work any longer, sorry.
21 #vbell_msg "  Wuff,  Wuff!!  "     # this is the default message
22 #bell "\aBimmmel No. %"             # sounds the bell and shows a message
24 # we want to login all windows we create.
25 #login on                  # "login", "nologin" don't work any longer, sorry 2.
27 echo -n "."
28 # we have no termcap entry for screen on the target machine? Well then 
29 # we tell a lie.
30 term screen              # would be the obvious default here.
31 #term vt100               # screen will understand vt100 for 99%. 
33 # we want to survive hangups
34 # note that the default setting is off now!
35 autodetach on
37 # when we open a window, where shall its CWD be?
38 chdir                     # without argument it's my $HOME
40 echo -n "."
41 # I hate nonexisting status lines! Force screen to believe me.
42 #hardstatus off
44 # now some Terminal setup:
45 # Printing in the leftmost column is not save. We express that fact as :LP@:
47 # Emacs tends to smear it's highlighted status bar across the screen, producing
48 # ugly areas of bright background, if termcap is'nt perfectly sober.
49 # Give a little :ms@: in the termcap, this may help.
51 # And who invented the initialisation for facit terminals? We tell him that 
52 # we non't like smooth scroll, by specifying :ti=\E[?l:.
53 # \E[?3l   80 Zeichen
54 # \E[?3h   132 Zeichen
55 # LP       Last column Printable
56 # \E[A     cursor up
57 # \E[B     cursor down
58 # \E[?4h   smooth scroll
59 # \E[?4l   jump scroll
60 # \E[%dL   insert %d lines
61 # \E[K     clear to end of line
62 # cs       \E[%i%d;%dr    for twist and xterm
63 # ms@      Move in Standout mode is NOT save.
64 # WS       our private variable, it declares that the terminal can 
65 #          be resized by an escape-sequence
66 # The termcap statement takes 2 or three parameters. First parameter lists
67 # which TERMCAPs are affected by this statement. Second we specify changes
68 # in screen's view of that terminals. Third we may specify some capabilities
69 # that user-programs want to see in the $TERMCAP environment variable or in
70 # screen's termcap entry.
71 termcap vt* cl=\E[H\E[J\E[?1h:vi=\E[?35h:ve=\E[35l:ti=\E[?4l[vt100]
72 termcap facit ti=\E[?4l[facit]
73 termcap xterm* is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l:Z0=\E[?3h:Z1=\E[?3l
75 echo -n "."
76 # "\E(B", "\E(0", "\E(1", "\E(2", ... to switch between charsets.
77 # screen internally emulates G1: "\E)..", G2: "\E*..", G3: "\E+.."
78 # you can switch between them, with:
80 #  code | switch to
81 # ------+------
82 #  ^O   |  G0
83 #  ^N   |  G1
84 #  \En  |  G2
85 #  \Eo  |  G3
86 #termcap facit|vt100|xterm* G0
88 # how do we resize windows? under sunview, this is standard, but xterm
89 # needs to be a specially hacked xterm, to make this work.
90 termcap xterm* WS=\E[8;%d;%dt
92 # ICL 6402 testing:
93 termcap icl* G0:S0=\E$[start]:E0=\E%[end]:C0=j9k<l6m3n?q\:t7u=v;w>x5 GS=\E(0^O:GE=\E(B^O:G1=k:G2=l:G3=m:G4=j:GV=x:GH=q:GR=u:GL=t:GU=w:GD=v:GC=n
95 # Flowcontrol produces trouble. ^S und ^Q will never reach screen, as our
96 # terminals catch them locally. Who can explain that to me?:
97 #flow on|off|auto [interrupt]
99 # Long Lines get wrapped around (the back of your terminal). This is the 
100 # default for vt100. But now programs make different asumptions about your
101 # terminal. You may find two linefeeds where you'd expect one, or you may
102 # be confronted with a truncated line. Currently there is no fix, but pressing
103 # C-A r and doing a redraw.
104 #wrap on
106 # the autoaka allows you to see the currently executing shell command in the
107 # window name field. To use that, your shell prompt must contain ^[k^[\ or
108 # you will see the string "(init)" as a name.
109 # in my .cshrc I may use this for a wonderfull tcsh-prompt:
110 #       set prompt="%{^[k^[\\%}%h %c2(%m)%# "
112 # defining a shellaka that contains a pipe-symbol (|) activites the
113 # autoaka feature. To the left of that | you specify a constant part of
114 # your prompt as a trigger, to the right you may place a default string
115 # as in
116 shellaka '> |tc'
117 # but beware! specifying a window name with the -t option has priority over
118 # the autoaka mechanism. Although specifying -t "> |foo" will work.
119 # shellaka tc
121 # ... now a little bit of key bindings
122 # In case we don't have write permission for /etc/utmp (no s-bit)
123 # we create even local windows via rlogin. -> Et voila: a utmp-slot
124 # utmp-slots are strongly recomended to keep sccs and talk happy.
125 # (thus we have ^A# or. ^Ac for windowcreation with or without utmp-slot.)
126 # but if we run suid-root, we produce all the rlogins with -ln, 
127 # as nobody shall refer to these pty's.
128 bind '!' screen -ln -k faui41 rlogin faui41
129 bind '@' screen -ln -k vme2 rlogin faui4_vme2
130 #bind '#' screen -k faui43
131 bind '#' screen -ln -k faui43 rlogin faui43
132 bind '$' screen -ln -k faui44 rlogin faui44
133 bind '%' screen -ln -k faui45 rlogin faui45
134 bind '\^' screen -ln -k sup1 rlogin fausup1
135 bind '&' screen -ln -k sup2 rlogin fausup2
136 bind '*' screen -ln -k faui48 rlogin faui48
137 bind '(' screen -ln -k faui09 rlogin faui09
138 bind ')' screen -ln -k faui10 rlogin faui10
139 bind 'J' screen -ln -k 4j rlogin faui4j
140 bind 'P' screen -ln -k 4p rlogin faui4p
141 bind '^C' screen -ln -k 45c rlogin faui45c
142 bind '^D' screen -ln -k 45d rlogin faui45d
143 bind '^E' screen -ln -k 45e rlogin faui45e
144 bind '^I' screen -ln -k 45i rlogin faui45i
146 # these two are logIn and logOut. As a toggle is too stupid.
147 #bind 'I' set login on
148 #bind 'O' set login off
149 bind 'L'
151 # What happens, when you 'think emacs' and want to erase a whole
152 # line? You type ^A^K right? Under screen it should be ^Aa^K. But...
153 # killing the window would be a real punishment for a little mistyping.
154 bind k          #wow! I even amange to type ^Ak by accident.
155 #bind ^k
156 #bind K kill
158 echo -n "."
159 #screen 1:faui43          # My good old <nr>:<alias> syntax
160 #screen -k faui43          # The way Wayne Davison thinks about it.
161 #screen -ln -k faui43      # this one not logged in.
162 #screen -ln 2:faui09 rlogin faui09 -l jnweiger
164 # Finally another bonus feature for people using strange terminal settings like
165 # different baud rate, etc. The next user will get standard settings
166 # as ^[c is a reset sequence.
167 #pow_detach_msg ""                # is the default
168 pow_detach_msg "\ec" 
169 echo "done."