home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!swrinde!news.dell.com!texsun!digi!kgallagh
- From: kgallagh@digi.lonestar.org (Kevin Gallagher)
- Newsgroups: comp.emacs
- Subject: Re: mapping the arrow keys in xterm
- Keywords: arrow keys, xterm
- Message-ID: <1993Jan6.180843.24151@digi.lonestar.org>
- Date: 6 Jan 93 18:08:43 GMT
- References: <1993Jan5.202737.17196@pencom.com>
- Organization: DSC Communications Corp, Plano, TX
- Lines: 23
-
- In article <1993Jan5.202737.17196@pencom.com> alex@pencom.com writes:
- >I'm using a version of xterm which does not understand the arrow keys. I
- >tried the following in my ~/.emacs file:
- >
- >(define-key global-map "^[[A" 'previous-line)
- >
- >I get the following message everytime I use eval-current-buffer:
- >
- >Key sequence ^[[A uses invalid prefix characters.
-
- Replace your define-key line with the following:
-
- (define-key global-map "\e[" nil)
- (define-key global-map "\e[A" 'previous-line)
-
- In order to use "\e[" (ESC followed by a left bracket character) as a prefix
- sequence, you have to remove its current binding to backward-paragraph. The
- first line does this.
- --
- ----------------------------------------------------------------------------
- Kevin Gallagher kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
- DSC Communications Corporation Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
- ----------------------------------------------------------------------------
-