HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Keyboard Mapping

 
JayararamanSubramanian
Occasional Advisor

Keyboard Mapping

Hi

I have to do the following mapping to get a X Windows application to work on HP UNIX 11.23( itanium processor)

xmodmap -e "keysym BackSpace = Delete" -e "keysym Delete = BackSpace"

The issue is, this command only makes the changes temp. on the X windows Application. When I change the mouse focus to another Application ( also X windows), the mapping is lost.

May i know how to make the following a permanent change ?

Can I use itemap ?
Any other suggestion?
5 REPLIES
Suraj K Sankari
Honored Contributor

Re: Keyboard Mapping

HI,
How about putting putting this command into .dt_profile ?

xmodmap -e "keysym BackSpace = Delete" -e "keysym Delete = BackSpace"


Suraj
JayararamanSubramanian
Occasional Advisor

Re: Keyboard Mapping

Just to clarify? Will this .dt_profile be stored under the home directory of the User?

I will try this and get back to you
THanks.
Jayaram
Alex Glennie
Honored Contributor

Re: Keyboard Mapping

or consider using keymap_ed as in

make a copy of XHPKeymaps

add new modmap and put into XHPKeymaps.new
keymap_ed -k XHPKeymaps -m modmap

copy back

cp XHPKeymaps.new /usr/lib/X11XHPKeymaps

more info on the man page.
JayararamanSubramanian
Occasional Advisor

Re: Keyboard Mapping

Thanks

Will try both solutions...

Will feedback tomorrow.

regards
Jaya
JayararamanSubramanian
Occasional Advisor

Re: Keyboard Mapping

Hi
I tried both solutions. Unfortunately for me, none really solved the issue I am facing.
#1- .dtprofile
==============
I stared with creating a .dtprofile in the users Home directory.
Rebooted the system and checked. While the Xterm works fine, the X windows program started by a server as process is not responding to backspace for erase. However it will still work temporarity for Xmodmap command from xterm session.

#2: keymap_ed
=============
Yeah. I did this as well with a numebr of combinnations as well.
keysym, keycode etc.
again i was not luckly.

Not sure what else can be done....