dot/screenrc: Erase to current background colour by default.
[profile] / dot / screenrc
... / ...
CommitLineData
1### -*-conf-*-
2###
3### Screen configuration.
4
5## Unusual escape character. C-a interferes with Emacs and Bash.
6escape ^zz
7
8## Make real beeping sounds.
9vbell off
10
11## Maintain a decent amount of scrool.
12defscrollback 10000
13
14## Terminal behaviour.
15defbce on
16
17## Snooping.
18defmonitor on
19defsilence on
20activity ""
21bell_msg ""
22
23## Do alternate-screen switching as requested. (Screen always uses its
24## host's alternate-screen switching unless nobbled.)
25altscreen on
26
27## Don't try to do flow control using XON/XOFF characters. It messes stuff
28## up and is generally annoying.
29defflow off
30
31## Force UTF-8 now. Screen can cope with sorting out the mess.
32defencoding utf8
33setenv LC_CTYPE en_GB.utf8
34setenv LESSCHARSET utf-8
35
36## Awful N900 hacking. The N900's keymapping is hopelessly broken: the
37## return key is bound to the KP_Enter keysym (and this can't be fixed
38## without breaking the desktop). Mostly, stuff is fine except that when
39## terminal clients switch to application mode, they get the `fe' sequence
40## ^[OM instead of ^M, which they often don't deal with well. Trap this
41## sequence here, and map it back to ^M.
42bindkey -d -a -k fe stuff ^M
43
44## Copyright message is now boring.
45startup_message off
46
47## Caption and status lines.
48caption splitonly "%{=br Cb}%?%F%{Yr}%?%3n %t%=%? [%h]%?"
49hardstatus alwayslastline "%{= bC}%-Lw%{+b .Y}%n %t%{-}%+Lw%=%?%E* %?%?%P[] %?%H %Y-%m-%d %c:%s"
50rendition monitor + .R
51rendition bell +b .R
52rendition silence + .g
53
54## Don't adjust the widths of terminal windows when starting up.
55terminfo xterm-256color is="\E[!p\E[?4l\E[4l\E>"
56
57## Arrange for windows whose processes fail to hang around so I can see what
58## happened to them. The manual says I should use `defzombie' here, but
59## screen doesn't seem to understand that.
60zombie qr onerror
61
62## Customize key bindings.
63bind \040
64bind ( focus up
65bind ) focus down
66bind {
67bind }
68bind \
69bind ^a
70bind a
71bind A layout attach
72bind ^b
73bind b
74bind B
75bind C
76bind d
77bind D
78bind ^e
79bind e
80bind E layout select
81bind ^f
82bind f
83bind ^g
84bind g
85bind G
86bind ^h
87bind \177
88bind H
89bind I
90bind ^j
91bind j
92bind J
93bind ^k
94bind k
95bind K
96bind l
97bind L layout new
98bind ^m
99bind m
100bind N layout next
101bind ^o
102bind o
103bind O layout show
104bind P layout prev
105bind ^q
106bind ^r
107bind r
108bind R layout remove
109bind ^s
110bind t
111bind T
112bind ^u
113bind u
114bind U
115bind V
116bind w
117bind W
118bind ^y
119bind y
120bind Y