Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!purdue!bu-cs!bloom-beacon!stellar.COM!stevep From: stevep@stellar.COM (Steve Pitschke) Newsgroups: comp.windows.x Subject: Re: Sun Type 4 Keyboad and X Message-ID: <8906091851.AA18326@moon.stellar.COM> Date: 9 Jun 89 18:51:54 GMT References: <8906091558.AA02886@expire.lcs.mit.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 71 >> The problem is that the num_lock key >> is defined as a function key, not as a modifier. >> That's not really the problem at all. The real problem is that neither the >> Xlib nor the Xt key handling routines recognize Num Lock semantics. If you got >> past that, you might get to the semantics of IsMiscFunction>> Key (but I dou bt >> it). >> (RWS - If you are out there, WHY?) >> Am I responsible for everything? Probably because whoever defined the macro >> had never touched an IBM keyboard before. If you think it's wrong, please >> file a bug report. Actually, I have my numlock key working with the following lines from my Xdefaults file. (You may have to run xmodmap to assign Mod2 "shift" functionality to the numlock key as well, depending on what your friendly server implementor defined as the default modifiers. % xmodmap -e 'add mod2=Num_Lock' I have good access to the one at Stellar.) XTerm.VT100.Translations: #override \ Insert: string(0x1b) string("[1~") \n\ . . . Right: string(0x1b) string("[C") \n\ \ Mod2 KP_Divide: string("/") \n\ Mod2 KP_Multiply: string("*") \n\ Mod2 KP_Subtract: string("-") \n\ Mod2 KP_7: string("7") \n\ Mod2 KP_8: string("8") \n\ Mod2 KP_9: string("9") \n\ Mod2 KP_Add: string("+") \n\ Mod2 KP_4: string("4") \n\ Mod2 KP_5: string("5") \n\ Mod2 KP_6: string("6") \n\ Mod2 KP_1: string("1") \n\ Mod2 KP_2: string("2") \n\ Mod2 KP_3: string("3") \n\ Mod2 KP_0: string("-") \n\ Mod2 KP_Decimal: string(".") \n\ Mod2 KP_Enter: string(0x0a) \n\ \ ~Mod2 KP_Divide: string(0x1b) string("[OQ") \n\ ~Mod2 KP_Multiply: string(0x1b) string("[OR") \n\ ~Mod2 KP_Subtract: string(0x1b) string("[OS") \n\ ~Mod2 KP_7: string(0x1b) string("[Ow") \n\ ~Mod2 KP_8: string(0x1b) string("[Ox") \n\ ~Mod2 KP_9: string(0x1b) string("[Oy") \n\ ~Mod2 KP_Add: string(0x1b) string("[Om") \n\ ~Mod2 KP_4: string(0x1b) string("[Ot") \n\ ~Mod2 KP_5: string(0x1b) string("[Ou") \n\ ~Mod2 KP_6: string(0x1b) string("[Ov") \n\ ~Mod2 KP_1: string(0x1b) string("[Oq") \n\ ~Mod2 KP_2: string(0x1b) string("[Or") \n\ ~Mod2 KP_3: string(0x1b) string("[Os") \n\ ~Mod2 KP_0: string(0x1b) string("[Op") \n\ ~Mod2 KP_Decimal: string(0x1b) string("[On") \n\ ~Mod2 KP_Enter: string(0x1b) string("[OM") \n\ \ . . .