Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!decwrl!apple!portal!atari!imagen!sun!imryrr.Eng.Sun.COM!elric From: elric@imryrr.Eng.Sun.COM (Rick Heli) Newsgroups: comp.windows.x Subject: Re: Keyboard Translations: X11 & OW2.0-A question Message-ID: <140978@sun.Eng.Sun.COM> Date: 20 Aug 90 18:51:35 GMT References: <1990Aug17.180119.18774@cbnewsh.att.com> Sender: news@sun.Eng.Sun.COM Distribution: usa Organization: Sun Microsystems, Mt. View, Ca. Lines: 44 In article <1990Aug17.180119.18774@cbnewsh.att.com> wolf@cbnewsh.att.com (thomas.wolf) writes: > >I am running OpenLook 2.0 and have come across a mystifying "incompatability" >between the the xnews server and my X11R4 server: > >Under X11R4, I have the following entry in my .Xdefaults file to redefine the >F1-F5, F12 keys: > . > . >xterm*VT100.Translations: #override F12: keymap(psdn) >xterm*VT100.psdnKeymap.translations: F1: string("aaa") string(0x0d) \n\ > F2: string("bbb") string(0x0d) \n\ > F3: string("ccc") string(0x0d) \n\ > F4: string("ddd") string(0x0d) \n\ > F5: string("eee") string(0x0d) \n\ > F12: keymap(None) \n > . > . >Thus I can switch to my alternate key mappings for F1-F5 by hitting F12 >(and go back to no translations by pressing F12 again). > >Unfortunately, when I run xnews, this no longer works. Does anyone know >what I need to do to get this to work once more? Any help would be >appreciated, This works for me (OpenWindows v2 FCS). Keep in mind that the server sees F12 and L2 as the same, and with xnews they are mapped to the key labeled "L2" ("Again"), so if you specify F12 in your .Xdefaults, be sure to hit the key labeled "L2" on your keyboard. If you want something to trigger on pressing F11 or F12, the appropriate keysym names are SunF36 SunF37 References: O'Reilly Volume 0, appendix on Keysyms xmodmap -pk -- Rick Heli Internet: rheli@sun.COM