wolf@cbnewsh.att.com (thomas.wolf) (08/18/90)
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 <Key>F12: keymap(psdn) xterm*VT100.psdnKeymap.translations: <Key>F1: string("aaa") string(0x0d) \n\ <Key>F2: string("bbb") string(0x0d) \n\ <Key>F3: string("ccc") string(0x0d) \n\ <Key>F4: string("ddd") string(0x0d) \n\ <Key>F5: string("eee") string(0x0d) \n\ <Key>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 -- +-------------------------------------+ "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. +-------------------------------------+
grp@unify.uucp (Greg Pasquariello) (08/20/90)
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 <Key>F12: keymap(psdn) > xterm*VT100.psdnKeymap.translations: <Key>F1: string("aaa") string(0x0d) \n\ > <Key>F2: string("bbb") string(0x0d) \n\ > <Key>F3: string("ccc") string(0x0d) \n\ > <Key>F4: string("ddd") string(0x0d) \n\ > <Key>F5: string("eee") string(0x0d) \n\ > <Key>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 <Key>SunF37: keymap(psdn) xterm*VT100.psdnKeymap.translations: <Key>F1: string("aaa") string(0x0d) \n\ <Key>F2: string("bbb") string(0x0d) \n\ <Key>F3: string("ccc") string(0x0d) \n\ <Key>F4: string("ddd") string(0x0d) \n\ <Key>F5: string("eee") string(0x0d) \n\ <Key>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
elric@imryrr.Eng.Sun.COM (Rick Heli) (08/21/90)
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 <Key>F12: keymap(psdn) >xterm*VT100.psdnKeymap.translations: <Key>F1: string("aaa") string(0x0d) \n\ > <Key>F2: string("bbb") string(0x0d) \n\ > <Key>F3: string("ccc") string(0x0d) \n\ > <Key>F4: string("ddd") string(0x0d) \n\ > <Key>F5: string("eee") string(0x0d) \n\ > <Key>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