Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!ukc!stc!datlog!torch!richard From: richard@torch.UUCP (Richard Nuttall) Newsgroups: comp.windows.x Subject: Re: Sun Type 4 Keyboad and X Message-ID: <368@torch.UUCP> Date: 13 Jun 89 11:37:15 GMT References: Distribution: comp Organization: TORCH Computers Ltd., Cambridge, England Lines: 42 wwc@boole.ece.wisc.edu (William W. Carlson) writes: >... 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? Add the following to your .Xdefaults file or put it in the app-defaults/XTerm file. XTerm*VT100.Translations: #override \ Num_Lock: keymap(numbers) XTerm*VT100.numbersKeymap.translations: \ KP_1: string("1") \n\ KP_2: string("2") \n\ KP_3: string("3") \n\ KP_4: string("4") \n\ KP_5: string("5") \n\ KP_6: string("6") \n\ KP_7: string("7") \n\ KP_8: string("8") \n\ KP_9: string("9") \n\ KP_0: string("0") \n\ Num_Lock: keymap(None) The mechanism is documented in the xterm man page. The function keys can likewise be defined. >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? I haven't found a way to do this yet, at least not with awm. -- Richard Nuttall | ukc!stc!datlog!torch!richard Torch Technology Ltd. | 0223 841000 X 309 Cambridge England |