Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!decwrl!mips!pacbell.com!pacbell!sactoh0!unify!magpie!grp From: grp@unify.uucp (Greg Pasquariello) Newsgroups: comp.windows.x Subject: Re: Keyboard Translations: X11 & OW2.0-A question Message-ID: Date: 20 Aug 90 11:40:04 GMT References: <1990Aug17.180119.18774@cbnewsh.att.com> Sender: news@Unify.Com (news admin) Reply-To: grp@unify.com Distribution: usa Organization: Unify Corporation, Sacramento, California Lines: 54 In-Reply-To: wolf@cbnewsh.att.com's message of 17 Aug 90 18:01:19 GMT 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, > > Tom > There are 37 function keys on the Sun4 keyboard, while only 35 total function keysyms specified in the X Protocol. Therefore, Sun has mapped F11 and F12 to the Keysyms "SunF36" and "SunF37" respectively. The definitions for these keysyms is in $OPENWINHOME/include/X11/Sunkeysym.h. Therefore, your translations should look like... xterm*VT100.Translations: #override SunF37: 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\ SunF37: keymap(None) \n > . > -- > +-------------------------------------+ "Stupid" questions are better than > | Thomas Wolf | (201) 949-8063 | no questions at all. No answer is > | Bell Labs, NJ | wolf@spanky.att.com | better than a stupid one. > +-------------------------------------+ -- -Greg Pasquariello grp@unify.com