home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / openloo / 5015 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.8 KB

  1. Path: sparky!uunet!gossip.pyramid.com!pyramid!unify!openlook!openlook-request
  2. From: gaffur@belenos.pci.upmc.edu (Ehsan-ul Gaffur)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: Function Keys...
  5. Message-ID: <1wva811@openlook.Unify.Com>
  6. Date: 11 Jan 93 14:14:58 GMT
  7. Sender: news@Unify.Com
  8. Distribution: world
  9. Lines: 37
  10.  
  11. In message <1993Jan8.181244.927@uoft02.utoledo.edu> you write:
  12. > I could get my hands on, and I can't find anything.  If anyone out there
  13. > knows how to map commands to the function keys on a sun keyboard I'd love
  14. > to hear from you!  I'm beginning to think it's hopeless!
  15. Hmmm, let me see.  I suspect that you want to define keys within, say, a
  16. command or shell tool right?  Well, if that is the case then you should
  17. look at loadkeys(1).  In a nutshell, one may define keys to send a
  18. sequence of characters to the standard output thus:
  19.  
  20. +== vtkeypad ===================================+
  21. | key 45   base "^[OP"                          |
  22. | key 46   base "^[OQ"                          |
  23. | key 47   base "^[OR"                          |
  24. | key 68   base "^[Ow" shift 7                  |
  25. | key 69   base "^[Ox" shift string+uparrow     |
  26. | key 70   base "^[Oy" shift 9                  |
  27. | key 71   base "^[OS"                          |
  28. | key 91   base "^[Oz" shift string+leftarrow   |
  29. | key 93   base "^[Ov" shift string+rightarrow  |
  30. | key 113  base "^[Or" shift string+downarrow   |
  31. +===============================================+
  32.  
  33. Assume you have a file like the one shown above.  You may redefine your
  34. keyboards right keypad by using the command "loadkeys vtkeypad".  Of
  35. course you can substitute any string for those shown above.
  36.  
  37. I believe one may find a list of all the key numbers in the files
  38. /usr/share/lib/keytables/layout_??
  39.  
  40. Good luck!
  41.  
  42.  
  43. Ehsan-ul Gaffur
  44. Systems Analyst
  45. Biostatistics Center
  46. Pittsburgh Cancer Institute
  47.