home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / emacs / help / 3957 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.4 KB

  1. Path: sparky!uunet!utcsri!torn!cunews!revcan!software.mitel.com!klug!klug
  2. From: klug@Software.Mitel.COM (Peter Klug)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: Code for sun keyboard -- how can i find out?
  5. Message-ID: <KLUG.92Sep2085018@klug.Software.Mitel.COM>
  6. Date: 2 Sep 92 12:50:18 GMT
  7. References: <1992Sep1.160714.7075@cas.org>
  8. Sender: klug@Software.Mitel.COM
  9. Organization: Mitel Corporation; Kanata, Ontario, Canada
  10. Lines: 27
  11. In-reply-to: zfs60@cas.org's message of 1 Sep 92 16:07:14 GMT
  12.  
  13.  
  14. In article <1992Sep1.160714.7075@cas.org> zfs60@cas.org writes:
  15.  
  16.    i know the following because that was what i got a long time ago, but
  17.    i wonder if there is anyway to find out the code for an arbitrary key,
  18.    such as insert, and do-nothing key among arrow keys.  thanks.
  19.  
  20.    (global-set-key         "\e[215z"       'previous-line)
  21.                --------
  22.                this is the code for upward arrow
  23.  
  24.  
  25. Unless I'm misunderstanding the question, I think a simple
  26. quoted-insert should give you what you want.  When I set up my .emacs
  27. file, I used quoted-insert to  determine the code for all the keys I
  28. configured and they seem to be doing what I assigned to them.
  29.  
  30. Exceute quoted-insert and then type the keystroke.  Just remember that
  31. the escape (or Meta) gets displayed as "^[".
  32.  
  33. Example:
  34.    [D  is left arrow (you'd use "M-[D")
  35.  
  36. --
  37. *        Peter Klug         *  Peter_Klug@Software.Mitel.COM
  38. *     Mitel Corporation     *  
  39. *  Kanata, Ontario, Canada  *  Nostalgia ain't what it used to be.
  40.