beautypg.com

HP NonStop G-Series User Manual

Page 52

background image

Creating a New Keymap File

x6530 Run Command and Customizing Options

082628 Tandem Computers Incorporated

2–23

Keymap Files

The x6530 Emulator can assign any key or any combination of keys on a workstation
keyboard to a 6530 terminal key or function by using the information in a keymap file.
Keymap files reside on the workstation that x6530 runs on, not the workstation where
the x6530 window displays its output.

Keymap files depend on the X server and keyboard of a workstation. Several sample
keymap files are provided with x6530. One of the sample keymap files, with or
without modification, can be used as the default keymap file. Other sample files can
be used as alternative keymap files to the default file if your users have a variety of
keyboards and X servers. Alternative keymap files are defined with a -keymap
command line option when x6530 is run.

When a -keymap option is not used, x6530 searches for the default keymap file named
.x6530modkey, first in the user’s home directory, then in the /etc directory. If the
default file is not found in either place, x6530 stops because a keymap file is essential
for it to run.

See the installation notes in the file named INSTALL, included with your x6530
software, for more information about the sample keymap files. You can print
INSTALL at the Tandem host with a command similar to this one:

9> TGAL /IN $SYSTEM.ZX6530.INSTALL, OUT $S.#PTR1/

Example

The user is running x6530 at a UNIX workstation where the default keymap file is set
up for the UNIX workstation. The user’s computer is a Macintosh IIx named mac3, the
workstation where the x6530 window will display its output. The x6530 run command
would include a -keymap command line option to specify a keymap file for the
Macintosh keyboard and X server:

x6530 sos -display mac3:1 -keymap /etc/.xkmMac

x6530 searches for /etc/.xkmMac on the UNIX workstation.

Creating a New

Keymap File

You need to create a new keymap file when the supplied keymap files do not support
your user’s keyboard and X server. Before creating the new keymap file, you must
know the key symbol names (also called keysyms) for the keys on the keyboard.
Determining all the keysyms is a lengthy process, but you must be thorough in
discovering what the keysyms are for a particular keyboard.

Keysyms depend on the X server. For example, assume you have a PC that runs UNIX
as its primary operating system and DOS as its secondary operating system. Under
the UNIX X server, the keysyms for certain keys are one thing and under the DOS X
server the keysyms for the same keys might be something else.

Figure 2-2 shows a partial keymap file for a Sun keyboard. The lines beginning with a
# character are comments that show the keysym names for the Sun keyboard keys.
The lines without a # character are the keymap instructions that assign the Sun
keysyms to 6530 terminal keys and functions.

This manual is related to the following products: