root/dotfiles/screen/hirose31-screenrc @ 26

Revision 26, 4.7 kB (checked in by hirose31, 6 years ago)

dotfiles/screen: imported

Line 
1#
2# Example of a user's .screenrc file
3#
4
5# This is how one can set a reattach password:
6# password ODSJQf.4IJN7E    # "1234"
7
8# no annoying audible bell, please
9vbell on
10bell 'bell in window %n'
11msgwait 3600
12
13defwrap on
14
15# detach on hangup
16autodetach on
17
18# don't display the copyright page
19startup_message off
20
21# emulate .logout message
22pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
23
24# advertise hardstatus support to $TERMCAP
25# termcapinfo  * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
26
27# make the shell in every window a login shell
28#shell -$SHELL
29
30# autoaka testing
31# shellaka '> |tcsh'
32# shellaka '$ |sh'
33
34shelltitle sh
35
36# set every new windows hardstatus line to somenthing descriptive
37# defhstatus "screen: ^En (^Et)"
38
39defscrollback 1024
40
41# don't kill window after the process died
42# zombie "^["
43
44# logging
45logfile "$HOME/var/screen/%Y%m%d-%n.log"
46deflog  off
47
48################
49#
50# xterm tweaks
51#
52
53#xterm understands both im/ic and doesn't have a status line.
54#Note: Do not specify im and ic in the real termcap/info file as
55#some programs (e.g. vi) will not work anymore.
56termcap  xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
57terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
58
59#80/132 column switching must be enabled for ^AW to work
60#change init sequence to not switch width
61termcapinfo  xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
62
63# Make the output buffer large for (fast) xterms.
64termcapinfo xterm* OL=10000
65
66# tell screen that xterm can switch to dark background and has function
67# keys.
68termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
69termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
70termcapinfo xterm 'kh=\E[1~:kI=\E[2~:kD=\E[3~:kH=\E[4~:kP=\E[H:kN=\E[6~'
71
72# special xterm hardstatus: use the window title.
73#### termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
74
75# our xterm has colors! (rxvt, too)
76termcap  xterm* 'AF=\E[3%dm:AB=\E[4%dm'
77terminfo xterm* 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
78termcap  kterm* 'AF=\E[3%dm:AB=\E[4%dm'
79terminfo kterm* 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
80termcap  vt100 'AF=\E[3%dm:AB=\E[4%dm'
81terminfo vt100* 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
82termcap  vt102 'AF=\E[3%dm:AB=\E[4%dm'
83terminfo vt102* 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
84
85#terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
86termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
87
88# emulate part of the 'K' charset
89termcapinfo   xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
90
91# xterm-52 tweaks:
92# - uses background color for delete operations
93termcapinfo xterm ut
94
95################
96#
97# wyse terminals
98#
99
100#wyse-75-42 must have flow control (xo = "terminal uses xon/xoff")
101#essential to have it here, as this is a slow terminal.
102termcapinfo wy75-42 xo:hs@
103
104# New termcap sequences for cursor application mode.
105termcapinfo 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
106
107################
108#
109# other terminals
110#
111
112#make hp700 termcap/info better
113termcapinfo  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# Extend the vt100 desciption by some sequences.
116termcap  vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
117terminfo 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
118
119
120################
121#
122# keybindings
123#
124
125#remove some stupid / dangerous key bindings
126bind k
127bind ^k
128bind .
129bind ^\
130bind \\
131bind ^h
132bind h
133#make them better
134bind 'K' kill
135bind 'I' login on
136bind 'O' login off
137bind '}' history
138bind x
139bind ^x
140bind ^g
141bind ^S
142bind ^Q
143bind q
144
145# Yet another hack:
146# Prepend/append register [/] to the paste if ^a^] is pressed.
147# This lets me have autoindent mode in vi.
148register [ "\033:se noai\015a"
149register ] "\033:se ai\015a"
150bind ^] paste [.]
151
152# defkanji euc
153#defencoding eucJP
154
155################
156#
157# default windows
158#
159
160# screen -t local 0
161# screen -t mail 1 elm
162# screen -t 40 2 rlogin faui40
163
164# caption always "%3n %t%? @%u%?%? [%h]%?"
165
166### >= 3.09.11
167caption always "%{=r} %-Lw%{=u dd}%n%f %t%{-}%+Lw %= %l"
168hardstatus alwaysignore
169### <= 3.09.09
170# hardstatus alwayslastline "%w"
171
172# allpartial on
173
174# screen ���Emacs �ǿ����Фʤ���
175term mlterm
176
177escape ^]^]
178bind 'e' screen -t emacs emacs -nw
179bind 'r' screen -t root su
180bind ' ' other
181bind 's' source $HOME/etc/screen-init
182bindkey -k kb stuff \010
183
184# S   split  ʬ�� TAB focus  ����ΰ����
185# Q   only   ¾��ΰ������ X   remove ����ΰ������# multiuser on
186# acladd hirose
187# #aclchg hirose +rwx "#?"
188# #acldel hirose
189# aclgrp username [groupname]
190# sessionname hiroseterm
191
192# http://unknownplace.org/memo/2005/12/17
193bind -c REGION 2 split
194bind -c REGION 1 only
195bind -c REGION 0 remove
196bind -c REGION o focus
197# bind -c REGION ^ resize
198bind ^x command -c REGION
199
200# ���ԡ��⡼��markkeys h=^B:l=^F:$=^E:^D=^V
Note: See TracBrowser for help on using the browser.