-
Notifications
You must be signed in to change notification settings - Fork 2
/
.screenrc.no-x
60 lines (44 loc) · 1.76 KB
/
.screenrc.no-x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
bind 'n' next
bind 'e' prev
bind 'p'
# replace the k binding with something less typable
bind k
bind ^k
bind 'K' kill
# Change the history movement keys (mainly for Colemak)
markkeys "h=s:l=t:j=n:k=e:n=k:H=S:L=T:@=L:@=H"
autodetach on
defscrollback 2048
# Always use a login shell.
shell -$SHELL
startup_message off
backtick 1 1 1 sh -c "[ $(cat /etc/timezone) != 'Etc/UTC' ] && date -u '+%H:%M '"
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%- %{= kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%1`%{B}(%c) %{g}]'
defc1 off
defutf8 on
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
################
# xterm tweaks
################
#xterm understands both im/ic and doesn't have a status line.
#Note: Do not specify im and ic in the real termcap/info file as
#some programs (e.g. vi) will not work anymore.
termcap xterm* hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
terminfo xterm* hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
#80/132 column switching must be enabled for ^AW to work
#change init sequence to not switch width
termcapinfo xterm* Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
# Make the output buffer large for (fast) xterms.
termcapinfo xterm* OL=2048
# tell screen that xterm can switch to dark background and has function
# keys.
termcapinfo xterm* 'VR=\E[?5h:VN=\E[?5l'
termcapinfo xterm* 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
termcapinfo xterm* 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
# emulate part of the 'K' charset
termcapinfo xterm* 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'