Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles; site smu.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!inuxc!pur-ee!uiucdcs!smu!pedz From: pedz@smu.UUCP Newsgroups: net.emacs Subject: Re: Arrow Key Problems - (nf) Message-ID: <12400007@smu.UUCP> Date: Wed, 22-Aug-84 22:13:00 EDT Article-I.D.: smu.12400007 Posted: Wed Aug 22 22:13:00 1984 Date-Received: Sat, 25-Aug-84 05:48:02 EDT References: <446@hogpc.UUCP> Lines: 23 Nf-ID: #R:hogpc:-44600:smu:12400007:000:917 Nf-From: smu!pedz Aug 22 21:13:00 1984 #R:hogpc:-44600:smu:12400007:000:917 smu!pedz Aug 22 21:13:00 1984 I will post this since I have been asked this many times at our site so I feel that there may be a general use for it. The basic reason that the arrow keys do not work is that emacs does not use that part of termcap. If you want an arrow key (or a special funtion key) to perform some function within emacs, then simply bind those keystrokes to a function. A better method which works on some terminals is to configure the terminal to send the proper codes that emacs wants to see. The function inside emacs you need to use is bind-to-key if the key sequence is suitable for it. If it is not, then you must define keymaps and bind the keys to keymaps. The best example of this is the pseudo-vi mode that is done in the manual. (Hint, I have actually used the bind-to-key function on key sequences that did not start with ESC or ^X but I do not know if this will continue to work or not.) Perry convex!smu!pedz