dot/screenrc: Add a binding for the `kill' command.
[profile] / dot / screenrc
CommitLineData
2ccc0259
MW
1### -*-conf-*-
2###
3### Screen configuration.
4
5## Unusual escape character. C-a interferes with Emacs and Bash.
f617db13 6escape ^zz
2ccc0259
MW
7
8## Make real beeping sounds.
f617db13 9vbell off
2ccc0259
MW
10
11## Maintain a decent amount of scrool.
96096f43 12defscrollback 10000
2ccc0259 13
5488a212
MW
14## Terminal behaviour.
15defbce on
16
f8a53502
MW
17## Snooping.
18defmonitor on
19defsilence on
20activity ""
21bell_msg ""
22
2ccc0259
MW
23## Do alternate-screen switching as requested. (Screen always uses its
24## host's alternate-screen switching unless nobbled.)
25altscreen on
26
22837450
MW
27## Don't try to do flow control using XON/XOFF characters. It messes stuff
28## up and is generally annoying.
29defflow off
30
2ccc0259 31## Force UTF-8 now. Screen can cope with sorting out the mess.
9f0b54fb
MW
32defencoding utf8
33setenv LC_CTYPE en_GB.utf8
f7cc3bf8 34setenv LESSCHARSET utf-8
2ccc0259
MW
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
f0ef025e
MW
46
47## Caption and status lines.
f0ef025e 48caption splitonly "%{=br Cb}%?%F%{Yr}%?%3n %t%=%? [%h]%?"
f8a53502
MW
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
80a93752 53
b18620de
MW
54## Don't adjust the widths of terminal windows when starting up.
55terminfo xterm-256color is="\E[!p\E[?4l\E[4l\E>"
56
80a93752
MW
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
83065d51
MW
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
fe33bda7 93bind ^k kill
83065d51
MW
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