home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / hardware / 34 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.5 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!fido!toast!cwilson
  2. From: cwilson@toast.wpd.sgi.com (Chan Wilson)
  3. Newsgroups: comp.sys.sgi.hardware
  4. Subject: Re: Emacs bindings for SGI Keyboards?
  5. Message-ID: <1hb4k8INN6to@fido.asd.sgi.com>
  6. Date: 24 Dec 92 01:43:36 GMT
  7. References: <BzB2nq.5zu@ulowell.ulowell.edu> <1992Dec16.162316.5235@magnus.acs.ohio-state.edu>
  8. Organization: Silicon Graphics, Inc.  Mountain View, CA
  9. Lines: 43
  10. NNTP-Posting-Host: toast.wpd.sgi.com
  11.  
  12. This might help you out; no guarantees, but I'll try to help with
  13. specific problems...
  14.  
  15. In your .Xdefaults:
  16.     XWsh*keyboardType: xlib
  17.     XWsh*metaKeyMask:  8
  18.  
  19.  
  20. This gets the meta (ala Alt) key working.  To bind keys, I use this
  21. technique:
  22.  
  23. xwsh -title emacs -icontitle emacs -autofork -xrm \
  24.  'XWsh*keyMapFileAfter: true' -xrm 'XWsh.keyMapFile: .xwsh.emacs.bindings' \
  25.  -e emacs -nw
  26.  
  27. Where .xwsh.emacs.bindings holds
  28.  
  29. Home(any):     send("\033<");
  30. End(any):     send("\033>"); 
  31. Prior(any):     send("\033v"); 
  32. Next(any):     send("\026");
  33. Left(any):    send("\002");
  34. Up(any):    send("\020");
  35. Down(any):    send("\016");
  36. Right(any):    send("\006");
  37. KP_Insert(none):    send("0");
  38. KP_End(any):    send("1");
  39. KP_Down(any):    send("2");
  40. KP_Next(any):    send("3");
  41. KP_Left(any):    send("4");
  42. KP_Begin(any):    send("5");
  43. KP_Right(any):    send("6");
  44. KP_Home(any):    send("7");
  45. KP_Up(any):    send("8");
  46. KP_Prior(any):    send("9");
  47. KP_Delete(any): send(".");
  48.  
  49. There's obvious expansion on this theme.  
  50.  
  51. --Chan
  52.        Chan Wilson  ---  cwilson@sgi.com  ---  415/390-5006
  53.           Silicon Graphics, Inc.   Mountain View, CA
  54.        -> The only stupid question is the one not asked. <-
  55.