MacX: Mapping The Delete Key On An AIX System (6/94)

What is the command to properly map the Delete key on an AIX system for MacX? I'm connecting to an IBM 340 running AIX 3.2.5.

First some information about keyboard manipulation within MacX. When the MacX server is initiated, every key on the keyboard is associated with a key code and a correspondent key symbol. For example, the delete key has the keycode value 59, a keysym value 0xffff, and a keysym name "Delete". The keyboard and its keysys table can be modified in MacX with an X client called "xmodmap", which is available in most X hosts.

The "xmodmap" client lets you display and modify the X keyboard map and keysym table on the display server. You can find out what the key is mapped to with the command:

xmodmap -pk

You may for example, find the "Delete" key in MacX has the keycode value 59 and a keysym value 0xffff.

You can modify what the key is mapped to with the command:

xmodmap -e "keycode 59 = BackSpace"

In this example the keycode number 59 now maps to BackSpace instead of the Delete key. Please refer to the xmodmap(1X) manual in any X client host for more information and examples. Also, the "xev" client (which displays the content of X events) is useful to display these keycodes, and keysym values and names when any key is pressed interactively.

With this, you can virtually remap any key within MacX as long as you know their keycode and associated keysym values. You didn't specify which key the Delete key was to be mapped to in MacX, so we used the above example to show you how it is done.

Support Information Services


Published Date: Feb 19, 2012