🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #3595

Re: mapping the arrow keys in xterm

#3595
From: Kevin Gallagher
Date: Wed, 06 Jan 1993 18:08
23 lines
1439 bytes
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
----------------------------------------------------------------------------
Technical Details
Message-ID: <1993Jan6.180843.24151@digi.lonestar.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!swrinde!news.dell.com!texsun!digi!kgallagh
References: <1993Jan5.202737.17196@pencom.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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