dot/screenrc: Screen fixing.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 26 Feb 2012 13:35:22 +0000 (13:35 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 26 Feb 2012 13:47:48 +0000 (13:47 +0000)
  * Fixing keypad-enter for N900.

  * Reinstatement of `utmp' entries.

  * General sprucing up and commentary.

dot/screenrc

index 134dd9b..9231eff 100644 (file)
@@ -1,8 +1,32 @@
+### -*-conf-*-
+###
+### Screen configuration.
+
+## Unusual escape character.  C-a interferes with Emacs and Bash.
 escape ^zz
+
+## Make real beeping sounds.
 vbell off
+
+## Maintain a decent amount of scrool.
 defscrollback 1000
-deflogin off
+
+## Do alternate-screen switching as requested.  (Screen always uses its
+## host's alternate-screen switching unless nobbled.)
+altscreen on
+
+## Force UTF-8 now.  Screen can cope with sorting out the mess.
 defencoding utf8
 setenv LC_CTYPE en_GB.utf8
 setenv LESSCHARSET utf-8
-altscreen on
+
+## Awful N900 hacking.  The N900's keymapping is hopelessly broken: the
+## return key is bound to the KP_Enter keysym (and this can't be fixed
+## without breaking the desktop).  Mostly, stuff is fine except that when
+## terminal clients switch to application mode, they get the `fe' sequence
+## ^[OM instead of ^M, which they often don't deal with well.  Trap this
+## sequence here, and map it back to ^M.
+bindkey -d -a -k fe stuff ^M
+
+## Copyright message is now boring.
+startup_message off