RISC SYSTEM/6000 KEYBOARD MAPPING PROBLEM
ITEM: RTA000027029
QUESTION:
My customer want's to use his RISC/6000 as a single view into his
network.
Suppose he is running Xwindows, and has three windows displayed. One
is from the RISC/6000 he's on (local), another is a HP-UX generated
"hpuxterm", and the last is a "DECterm" coming as a VAX/VMS Xclient.
How can I set up keymapping for each window? I'd like to make the
RISC/6000 window active, hit "Backspace", and get the normal result.
I'd also like to make the DECterm active, hit "Backspace", and be
able to send whatever ASCII escape code I can. Then, another
different code on the HPuxterm.
I think I can remap the keyboard for an Xwindows session via xmodmap,
but how can I use different "maps" in different windows?
---------- ---------- ---------- --------- ---------- ----------
A: My preferred method of providing custom keymapping to various clients
is through the use of translations. While you can use the xmodmap
approach, it changes the keymapping for the entire X server and would
require you to run the xmodmap command each time you wanted to start a
client with a different keymap. This can be very annoying.
I have included a sample shell script of a simple keyboard translation
using the aixterm client.
*************** Begin Sample Code *****************
aixterm -xrm "*aixterm.Translations: #override F11: keymap(new)\
*aixterm.newKeymap.translations:\
Shift F11: keymap(None) \n\
F6: string(0x48) \n\
F7: string(0x65) \n\
F8: string(0x6c) \n\
F9: string(0x6c) \n\
F10: string(0x6f)"
*************** End Sample Code *****************
In this example an aixterm will start and keymapping is normal. After
you press the F11 key however, the keymapping for the F6 through F10
keys will be altered. Pressing Shift-F11 will restore the original
keymap.
Further information is available in InfoExplorer by searching under
translation management.
This type of translation will work for any Xt application.
If you have trouble making this work from the HP or DEC platform you
should contact the respective vendor for assistance.
---------- ---------- ---------- --------- ---------- ----------
This item was created from library item Q608710 BTZLZ
Additional search words:
AIXTERM BTZLZ DECTERM HARDWARE IX KEYBOARD MAPPING NOV92 OZIBM OZNEW
PROBLEM RISC RISCOHW RISCSYSTEM SAME SESSION S6000 XWINDOWS
WWQA: ITEM: RTA000027029 ITEM: RTA000027029
Dated: 03/1996 Category: RISCADEV
This HTML file was generated 99/06/24~12:43:09
Comments or suggestions?
Contact us