MACLEOD@cc.utah.edu (Rob MacLeod) (08/27/90)
Dear SGI/IBM/EMACS users! We have just become the proud, if still somewhat inept, owners of SGI and IBM R6000 boxes and want to get emacs running on both. The version 18.54, which we have for the SGI is up and running, but with some bugs. Most annoying is the lack of cursor keys on either the console or the Macs that we all use as terminals. The normal emacs control-sequences will drive the cursor as expected but hitting the cursor keys inserts A,B,C, or D, depending on which cursor comtrol we've pushed, and a blank line or two. Yes, I know that the letters are from the escape-sequences that the VT-1000 terminal normally outputs for the cursor keys. I have poked around enough to see that TERMCAP is replaced(?) or supplemented(?) on the SGI with TERMINFO and have even set up a modified version of the VT100 terminal description, which allows the cursor keys to work in VI, but this seems to be ignored by emacs. We are running TelNet (NCSA and SU-MacIP) over Appletalk and Ethernet to the SGI and have even tried coming in over a Vax running VMS and Multinet but to no avail. Questions:1) How do we "adjust" the emacs code or SGI system parameters to allow us to use the cursor keys? and 2) Is there a version of emacs for the IBM R6000 or what has to be done to our edition to patch it enough to run under AIX? Any help will be MUCH appreciated! Rob MacLeod (macleod@cc.utah.edu or macleod@utahcca)) Nora Eccles Harrison Cardiovascular Research and Training Institute University of Utah Salt Lake City
archer@elysium.esd.sgi.com (Archer Sully) (08/29/90)
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 |