Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!shamash!com50!pai!erc From: erc@pai.UUCP (Eric Johnson) Newsgroups: comp.windows.x Subject: Re: Sun Type 4 Keyboad and X Summary: xev listing for Type 4 Message-ID: <541@pai.UUCP> Date: 9 Jun 89 13:50:38 GMT References: Distribution: comp Organization: Prime Automation, Inc., Burnsville, MN Lines: 89 In article , wwc@boole.ece.wisc.edu (William W. Carlson) writes: > Two quick and related questions. I have a sun (386i, but that's not > important) with a type 4 keyboard. I am also running X11R3 as > distributed, with patches 1-9 applied. I would like the "num lock" > key to have the "desired" effect, that is, when num lock is on, the > keypad goes into numbers mode. Can I do this easily/at all in X and > xterm? This is probably pretty messy. > On a related issue, some of the left keys have legends like "front", > "open", etc. In sunview, these have the action of performing the > appropriate window functions (like just press front to bring the > current window to the top). Is there any way I can get these keys > through to the window manager and have it do the appropriate thing in > X? Some window managers in X allow you to specify certain keys/events to do certain window manager functions. I suspect you will have the best luck with L5/Front. > Thanks for your answers and advice in advance. > > Bill Carlson > wwc@boole.ece.wisc.edu > wwc%boole.ece.wisc.edu@cs.wisc.edu Hope this helps... In running the xev (X event) client, I tested out the Sun type 4 keyboard on the Sun 386i. In general, the Left function keys map to the Lx keysyms (which are also Fx keysyms) and the right keys map to Rx (also Fx) keysyms. There were a few oddities. You may be able to map certain keys to do certain functions with your window manager's configuration file (e.g., .uwmrc, .twmrc, etc.). Other than that, it probably gets messy. Anyway, for more information, check ~/X11/include/keysym*.h. Here is what xev listed. Generally, the keysym symbols just need an "XK_" prepended, such as "XK_Help" for the Help key. Sun Type 4 X (as listed by xev) L1/ Stop F11 (XK_F11 == XK_L1, and so on) L2/ Again F12 L3/ Props F13 L4/ Undo F14 L5/ Front F15 L6/ Copy F16 L7/ Open F17 L8/ Paste F18 L9/ Find F19 L10/ Cut F20 Help Help (wow, a match) R1/ Pause F21 R2/ PrSc F22 R3/ Scrolllock/ Break F23 R4/ = F24 (not the keypad =) R5/ / F25 R6/ * F26 R7/ Home F27 R8/ Up/ 8 Up R9/ PgUp/ 9 F29 (not Prior) R10/ Left/ 4 Left R11/ 5 F31 R12/ Right/ 6 Right R13/ End/ 1 R13 (funny, this wasn't listed as an Fx key by xev) R14/ Down/ 2 Down R15/ PgDn/ 3 F35 (not Next) 0/ Ins NoSymbol (PC Insert Key) ./ Del NoSymbol (PC Delete Key) Left Diamond Meta_L (Left meta, or meta 1) Right Diamond Meta_R (Right meta) Alt Break (this is a funny one) Good luck, -Eric -- Eric F. Johnson | Phone +1 612-894-0313 | Are we Prime Automation,Inc | UUCP: bungia!pai!erc | having 12201 Wood Lake Drive | UUCP: sun!tundra!pai!erc | fun Burnsville, MN 55337 USA | DOMAIN: erc@pai.mn.org | yet?