3 ### Screen configuration.
5 ## Unusual escape character. C-a interferes with Emacs and Bash.
8 ## Make real beeping sounds.
11 ## Maintain a decent amount of scrool.
14 ## Terminal behaviour.
23 ## Do alternate-screen switching as requested. (Screen always uses its
24 ## host's alternate-screen switching unless nobbled.)
27 ## Don't try to do flow control using XON/XOFF characters. It messes stuff
28 ## up and is generally annoying.
31 ## Force UTF-8 now. Screen can cope with sorting out the mess.
33 setenv LC_CTYPE en_GB.utf8
34 setenv LESSCHARSET utf-8
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
44 ## Copyright message is now boring.
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
52 rendition silence + .g
54 ## Don't adjust the widths of terminal windows when starting up.
55 terminfo xterm-256color is="\E[!p\E[?4l\E[4l\E>"
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.
62 ## Customize key bindings.