dot/screenrc: Erase to current background colour by default.
[profile] / dot / screenrc
1 ### -*-conf-*-
2 ###
3 ### Screen configuration.
4
5 ## Unusual escape character. C-a interferes with Emacs and Bash.
6 escape ^zz
7
8 ## Make real beeping sounds.
9 vbell off
10
11 ## Maintain a decent amount of scrool.
12 defscrollback 10000
13
14 ## Terminal behaviour.
15 defbce on
16
17 ## Snooping.
18 defmonitor on
19 defsilence on
20 activity ""
21 bell_msg ""
22
23 ## Do alternate-screen switching as requested. (Screen always uses its
24 ## host's alternate-screen switching unless nobbled.)
25 altscreen on
26
27 ## Don't try to do flow control using XON/XOFF characters. It messes stuff
28 ## up and is generally annoying.
29 defflow off
30
31 ## Force UTF-8 now. Screen can cope with sorting out the mess.
32 defencoding utf8
33 setenv LC_CTYPE en_GB.utf8
34 setenv 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.
42 bindkey -d -a -k fe stuff ^M
43
44 ## Copyright message is now boring.
45 startup_message off
46
47 ## Caption and status lines.
48 caption splitonly "%{=br Cb}%?%F%{Yr}%?%3n %t%=%? [%h]%?"
49 hardstatus alwayslastline "%{= bC}%-Lw%{+b .Y}%n %t%{-}%+Lw%=%?%E* %?%?%P[] %?%H %Y-%m-%d %c:%s"
50 rendition monitor + .R
51 rendition bell +b .R
52 rendition silence + .g
53
54 ## Don't adjust the widths of terminal windows when starting up.
55 terminfo 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.
60 zombie qr onerror
61
62 ## Customize key bindings.
63 bind \040
64 bind ( focus up
65 bind ) focus down
66 bind {
67 bind }
68 bind \
69 bind ^a
70 bind a
71 bind A layout attach
72 bind ^b
73 bind b
74 bind B
75 bind C
76 bind d
77 bind D
78 bind ^e
79 bind e
80 bind E layout select
81 bind ^f
82 bind f
83 bind ^g
84 bind g
85 bind G
86 bind ^h
87 bind \177
88 bind H
89 bind I
90 bind ^j
91 bind j
92 bind J
93 bind ^k
94 bind k
95 bind K
96 bind l
97 bind L layout new
98 bind ^m
99 bind m
100 bind N layout next
101 bind ^o
102 bind o
103 bind O layout show
104 bind P layout prev
105 bind ^q
106 bind ^r
107 bind r
108 bind R layout remove
109 bind ^s
110 bind t
111 bind T
112 bind ^u
113 bind u
114 bind U
115 bind V
116 bind w
117 bind W
118 bind ^y
119 bind y
120 bind Y