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