Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mit-eddie.UUCP Path: utzoo!linus!decvax!genrad!mit-eddie!jbs From: jbs@mit-eddie.UUCP (Jeff Siegal) Newsgroups: net.emacs Subject: Re: Cursor keys Message-ID: <199@mit-eddie.UUCP> Date: Sat, 15-Feb-86 15:36:35 EST Article-I.D.: mit-eddi.199 Posted: Sat Feb 15 15:36:35 1986 Date-Received: Sun, 16-Feb-86 08:55:16 EST References: <11475@watnot.UUCP> Reply-To: jbs@mit-eddie.UUCP (Jeff Siegal) Organization: MIT, Cambridge, MA Lines: 15 In article <11475@watnot.UUCP> cagordon@watnot.UUCP (Chris Gordon) writes: > >I'm fairly new to emacs and was wondering if anyone can tell me if there is a >way to define the cursor keys on a DEC VT240 terminal to be next-line, >previous-line, forward-char, & backward-char. The cursor keys send the >characters ESC [ B,ESC [ A,ESC [ C,ESC [ D respectively. The only problem is >that the first two characters are taken to be backward-paragraph (ESC [) and >the rest is inserted into the text. One perfectly apporpriate way to do this is to put the VT240 in "applications mode," which gives the arrow keys codes of the form ESC-O . You then have to define these key-sequences to "next-line," etc. with whatever incantation your particular version of Emacs likes. Jeff Siegal - MIT EECS