LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-27-2005, 06:56 PM   #1
cdhjrt
Member
 
Registered: Mar 2002
Location: Marysville, WA
Distribution: Redhat, Win2K, Solaris
Posts: 41

Rep: Reputation: 15
Keyboard mapping


I need to program the + key on a number pad to be (esc0M) (A VMS keycode).

I am on a Linux (Redhat 9) terminal and it will only have a numeric keypad attached to it. The user will have a script attached which will automagically connect it (via ssh) to a Sun server and launch an application (no GUI). This application has a requirement for the esc sequences.

I'm willing to try a different terminal emulator (currently using Gnomes built in) or xterm. I have been experimenting with key mappings in Gnome and xterm, problem is the new mappings do not seem to follow when I ssh to the Sun server.

Thanks in advance for any help.
 
Old 10-31-2005, 08:48 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Not sure if all this will work for you. Use the command ' xev ' and get the keycode to the key. Then use this command to see if it works for you. ' xmodmap -e 'keycode 86 = esc0M'. Change 86 to the keycode you get from xev.

Check this links out:
http://www.linuxquestions.org/questi...18#post1892318
Forgot where I have my other links.
Also search this site on the subject.

Brian1
 
Old 11-01-2005, 03:03 PM   #3
cdhjrt
Member
 
Registered: Mar 2002
Location: Marysville, WA
Distribution: Redhat, Win2K, Solaris
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks for your help and suggestion.

Here is my problem.

This works:

xmodmap -e " keycode 119 = Escape"

The / becomes Escape however I have not been able to find any syntax which allows me to add the 0M to the keycode.

[$USER@$HOST:$PWD] ->xmodmap -e " keycode 119 = Escape0M"
xmodmap: commandline:0: bad keysym name 'Escape0M' in keysym list
xmodmap: 1 error encountered, aborting.

Thanks again for the suggestion.
 
Old 11-01-2005, 06:09 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Don't know if this will help but about I could find on esc0M was here.
http://linux.opennet.ru/docs/FAQ/OS/DEC/vms-part4.html

Hope this helps. If you get please post your answers for others
Brian1
 
Old 11-01-2005, 06:53 PM   #5
cdhjrt
Member
 
Registered: Mar 2002
Location: Marysville, WA
Distribution: Redhat, Win2K, Solaris
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks for the help.

I ended up downloading Multi-Gnome terminal from

http://multignometerminal.sourceforge.net

which allowed me to customize the keyboard shortcuts using ASCII characters (\033OM for example)

Thanks again for the help!

 
Old 11-03-2005, 05:29 PM   #6
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Glad you have it worked out. I will check out the multignome when I have more sparing time. Thanks for the shortcut tip for it. Will make a note of that.

Brian1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard re-mapping bong.mau Linux - Software 1 10-26-2005 01:01 PM
Keyboard Mapping ZeroX-2 Slackware 4 10-02-2004 08:58 PM
keyboard mapping minike Slackware - Installation 4 09-01-2004 03:48 PM
X won't recognize my keyboard mapping NonSumPisces Linux - General 1 06-23-2004 04:09 PM
X and keyboard mapping krajzega Slackware 1 02-24-2004 08:34 PM


All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration