home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / emacs / bug / 1682 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.9 KB  |  54 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!traffic.den.mmc.com!kevin
  2. From: kevin@traffic.den.mmc.com (Kevin Rodgers)
  3. Newsgroups: gnu.emacs.bug
  4. Subject: Re: KB mapping
  5. Date: 21 Jan 1993 18:22:48 -0500
  6. Organization: Martin Marietta Western Internal Systems, Technical Operations
  7. Lines: 40
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-emacs@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <1993Jan21.192851.27248@den.mmc.com>
  12. References: <9301201512.AA06053@xyplex.com>
  13.  
  14. In article <9301201512.AA06053@xyplex.com> engman@dxe.ai.mit.EDU (Dave Engman) writes:
  15. >HELP. I give up. How does one map top function keys and left and right keypads
  16. >on a Sun 4 to emacs functions? If this is non-trivial, can we buy some hand-
  17. >holding time? Thanks.
  18.  
  19. See lisp/term/sun.el to see how to map the keys, and see src/x11term.c
  20. to see what escape sequences are sent by each key under X11.  You should
  21. make sure sun-esc-bracket is set to t in your ~/.emacs or
  22. lisp/default.el:
  23.  
  24. ;; Enable Sun function key bindings:
  25. (if (string-match "^sun" (getenv "TERM"))
  26.     (setq sun-esc-bracket t))        ; see term/sun.el
  27.  
  28. And also map the escape sequences from within the term- and
  29. window-setup-hook; e.g.:
  30.  
  31. (setq term-setup-hook
  32.       (function (lambda ()
  33.           (define-key sun-map "224" 'save-buffers-kill-emacs) ; F1
  34.           ...
  35.           (define-key sun-map "232" 'save-buffers-kill-emacs) ; F9
  36.           )))    
  37.  
  38.  
  39. If you want more complete utilization of the keyboard:
  40.  
  41. Patch stringFuncVal() in src/x11term.c to return escape sequences for
  42. the function keys you're interested in.  The 18.58 sources failed to
  43. translate the XK_F10, XK_Help, XK_Insert, XK_Home, XK_Begin, and XK_End
  44. keysyms (as well as others not mapped to keys on the Sun keyboard).
  45.  
  46. Then patch term/sun.el to bind those escape sequences to the appropriate
  47. functions.
  48. -- 
  49. Kevin Rodgers                kevin@traffic.den.mmc.com
  50. Martin Marietta MS A16401        (303) 790-3971
  51. 116 Inverness Dr. East
  52. Englewood CO 80112 USA            GO BUFFS!
  53.  
  54.