home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3556 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.6 KB  |  52 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.den.mmc.com!traffic!kevin
  3. From: kevin@traffic.den.mmc.com (Kevin Rodgers)
  4. Subject: Re: Help with key mapping.
  5. Message-ID: <1992Jul29.164330.16475@den.mmc.com>
  6. Sender: news@den.mmc.com (News)
  7. Nntp-Posting-Host: traffic.den.mmc.com
  8. Organization: Martin Marietta Western Internal Systems, Technical Operations
  9. References: <1992Jul28.181836.26845@lsil.com>
  10. Date: Wed, 29 Jul 1992 16:43:30 GMT
  11. Lines: 39
  12.  
  13. In article <1992Jul28.181836.26845@lsil.com> mintz@lsil.com writes:
  14. >Hi,
  15. >
  16. >I am using gnuemacs 18.57 on a sparc 2 running openwindows 3.0 and for some 
  17. >reason my arrow keys (R8, R10, R12 and R14) send the \c-p \c-h \c-f and \c-n
  18. >codes to the editor. This is not so for just a plain xterm and if I run
  19. >my environment under a regular sun 4/110 the keyboard maps to the \c-x*...
  20. >sequences.
  21. >
  22. >Can anyone tell my what I have to add/change/delete so that I could, for 
  23. >example, distinguish between a \c-n generated by hitting the CTL and the N
  24. >and the down arrow key.
  25.  
  26. There's nothing you can do with elisp, since this is the result of a
  27. hack in internal_socket_read() in src/x11term.c:
  28.  
  29.     switch (keysym) {
  30.     case XK_Left:
  31.       strcpy(mapping_buf,"\002");
  32.       nbytes = 1;
  33.       break;
  34.     case XK_Right:
  35.       strcpy(mapping_buf,"\006");
  36.       nbytes = 1;
  37.       break;
  38.     case XK_Up:
  39.       strcpy(mapping_buf,"\020");
  40.       nbytes = 1;
  41.       break;
  42.     case XK_Down:
  43.       strcpy(mapping_buf,"\016");
  44.       nbytes = 1;
  45.       break;
  46.     }
  47. -- 
  48. Kevin Rodgers                kevin@traffic.den.mmc.com
  49. Martin Marietta MS A16401        (303) 790-3971
  50. 116 Inverness Dr. East
  51. Englewood CO 80112 USA            GO BUFFS!
  52.