Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!apollo!apollo.hp.com!weber_w From: weber_w@apollo.HP.COM (Walt Weber) Newsgroups: comp.sys.apollo Subject: Re: xterm PF1-PF4 keys Keywords: xterm X function keys Message-ID: <4f438fc0.20b6d@apollo.HP.COM> Date: 17 Jan 91 19:07:00 GMT References: <1991Jan16.232403.16478@cec1.wustl.edu> Sender: root@apollo.HP.COM Reply-To: weber_w@apollo.hp.com Organization: Hewlett-Packard Chelmsford Response Center Lines: 45 In article <1991Jan16.232403.16478@cec1.wustl.edu>, John A. Breen writes: |> Are the VT100 PF1-PF4 keys defined in the Apollo version of xterm? If so, |> where are they? If not, can someone give me a hint how to define them |> (or how to redefine any key for that matter). John, The manual "Using the X Window System on Apollo Workstations" is the place to look for some of this -- it's a good summary, but not an exhaustive treatise on X. The answer to your question is that you will need to use the client "xmodmap" in order to simulate the keys which are not physically present on the Apollo keyboard (PF1-PF4 as an example). Since you are running in a "dm owns root" configuration, you'll need to take into account the "keyboard.config" file which tells XApollo "this list of keys doesn't exist for X, pass them through to the Apollo Display Manager". This is important because you don't want to remap keys for xterm which XApollo will not GIVE to xterm. See section 2.2.2 in the manual for a detailed discussion about the /usr/lib/X11/keyboard/keyboard.config file. Once you have picked a set of physical keys to emulate the PF keys, feed this to xmodmap using the physical keycode and the keysym name (from the include file /usr/include/X11/keysymdef.h). Example - you want to make the "AGAIN" key map to PF1. Looking at the output of "xmodmap -pk" you see that it is labeled "Redo" (which agrees with the entry in the keyboard.config file), and it is keycode value 158. Looking at the include file keysymdef.h, you see "#define XK_KP_F1 0xFF91" which is the entry for "keypad function key 1" - also known as PF1. The xmodmap client will take either a file entry or a command line remapping, so you could invoke it as < xmodmap -e "keycode 158 = KP_F1" > (the quotes are required on the command line) and the deed is done. If you don't have a copy of the manual, you can get one by using the order number "015213-A02". Hope that helps. |> John Breen jab0396@cec1.wustl.edu johnb@hobbes.mdc.com ...walt... Walt Weber Hewlett Packard Response Center 508-256-6600x8315 Chelmsford, MA, USA "The power of accurate observation is commonly called cynicism by those who have not got it" -George Bernard Shaw