EMACS on SGI - cursor keys?
Archer Sully
archer at elysium.esd.sgi.com
Wed Aug 29 04:58:41 AEST 1990
In comp.sys.sgi MACLEOD at 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 at cc.utah.edu or macleod at 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 at esd.sgi.com |
More information about the Comp.sys.sgi
mailing list