home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / emacs / help / 4718 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.6 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!ukma!lexmark!aix370!casey
  2. From: casey@lexmark.com (Patrick Casey)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: Mapping Sun cursor keys
  5. Message-ID: <CASEY.92Nov6101821@anxiety.lexmark.lex.usa.na>
  6. Date: 6 Nov 92 15:18:21 GMT
  7. References: <1992Nov3.224930.2644@ncube.com>
  8. Sender: usenet@lexmark.com (News Dude)
  9. Reply-To: pacasey@lexmark.com
  10. Distribution: usa
  11. Organization: Lexmark International, Lexington KY
  12. Lines: 29
  13. In-Reply-To: thummel@ncube.com's message of Tue, 3 Nov 1992 22:49:30 GMT
  14. X-Disclaimer: These views are the poster's and not necessarily those of Lexmark
  15. Nntp-Posting-Host: anxiety.prtdev.lexmark.com
  16.  
  17. In article <1992Nov3.224930.2644@ncube.com> thummel@ncube.com (Tom Hummel) writes:
  18.  
  19. >  I'm trying to map the Sun keypad cursor keys to the cursor control
  20. >  functions in emacs. The Sun keypad appears to be a three character output.
  21. >  For example the Right arrow key produces ESC,[,C . global-set-key will
  22. >  only let me place 2 characters in the character string, if I place
  23. >  3 in there I get an init error. The syntax I tried was:
  24. >  (global-set-key "\033\133\103" 'forward-char)
  25.  
  26. I put a new term file in wherever_emacs_is/lisp/term called sun-cmd.el
  27. (since $TERM="sun-cmd" when I start emacs), that does stuff like this:
  28.  
  29. (define-key esc-map "[" (make-sparse-keymap))
  30. (global-unset-key "[")
  31.  
  32. (global-set-key "[A"    'previous-line)           ;  up arrow
  33. (global-set-key "[C"    'forward-char)        ;  right arrow
  34.  
  35. and so on.
  36.  
  37. Are you calling global-unset-key?  If you aren't, that may be the
  38. problem.  Hope this helps.
  39.  
  40. Patrick
  41.  
  42.  
  43.  
  44. --
  45. Patrick A. Casey      pacasey@lexmark.com         Hi, I.S. big brothers!
  46.