Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!sgi!shinobu!odin!elysium!archer From: archer@elysium.esd.sgi.com (Archer Sully) Newsgroups: comp.sys.sgi Subject: Re: EMACS on SGI - cursor keys? Message-ID: <1990Aug28.185841.7367@odin.corp.sgi.com> Date: 28 Aug 90 18:58:41 GMT References: <87809@cc.utah.edu> Sender: news@odin.corp.sgi.com (Net News) Organization: Silicon Graphics, Inc. Mountain View, CA Lines: 30 In comp.sys.sgi MACLEOD@cc.utah.edu (Rob MacLeod) writes: * * Dear SGI/IBM/EMACS users! * * Questions:1) How do we "adjust" the emacs code or SGI system parameters to * allow us to use the cursor keys? * * Any help will be MUCH appreciated! * * Rob MacLeod (macleod@cc.utah.edu or macleod@utahcca)) Well, you have to bind the commands for forward-char, backward-char, previous-line and next-line to the keystrokes produced by the arrow keys. you can do that like this (put these lines in your .emacs) ;; bindings for arrow keys on the SGI keyboard. (global-unset-key "\M-[") ;; undefine the leading sequence (global-set-key "\M-[A" 'previous-line) (global-set-key "\M-[B" 'next-line) (global-set-key "\M-[C" 'forward-char) (global-set-key "\M-[D" 'backward-char) There may be a nicer way of doing this, but this does work. -- Archer Sully | Every day is Earth Day with Nuclear Energy. archer@esd.sgi.com |