Operating System - HP-UX
1824976 Members
3459 Online
109678 Solutions
New Discussion юеВ

Keyboard Mapping function key

 
HPP
Regular Advisor

Keyboard Mapping function key

Hi,
we have installed third party software called star on HP-UX 11.00. I do telnet to that server from xterm on linux to HP-UX 11.00 box. After setting terminal TERM=vt220, i get into the application, then my function key (for example f9 is mapped to \E[20~) does not work, because "Escape key" has its own function within the application, like within the third party application if i am in a form and hit escape it comes to command prompt of application (some what similar to vi). when i press f9 it comes to command prompt of the application and puts [20~, it is not doing what it suppose to do.
I did untic on vt220 and made the change to function key f9 to ^B and ran tic on vt220 source, still the application looks at function key f9 as \E[20~.
I did checked the modified setting of newly compiled vt220 and it shows f9=^B.
Am i missing any important step in mapping the key??? Also how can someone tell me how to mapp "shift f9" to "control Z"???

thanks in advance.
Be Teachable
3 REPLIES 3
Wodisch
Honored Contributor

Re: Keyboard Mapping function key

Hi,

first: use "dtterm" not "xterm", as "xterm" is an VT101 emulation, but "dtterm" is an "VT220" emulation. The latter does have proper function keys, the former not.

Additionally you may configure your "$HOME/.Xdefaults" like here:

dtterm*translations: #override \n\ #
ShiftF9:string("\032") \n\ #
#

Due to problems with lines ending in back-slashes here in the forums you have to remove the "#" at the neds of the three lines...

HTH,
Wodisch
HPP
Regular Advisor

Re: Keyboard Mapping function key

Thanks for the reply.

No luck. I am having the same problem. I am telneting HP-UX box (11.00)from Gnome terminal running on Redhat linux. I dont know where is key the function is set, it is still taking "\E[20~" for F9, inspite of setting F9=^B

any more hints.....thanks
Be Teachable
HPP
Regular Advisor

Re: Keyboard Mapping function key

Hi,
when i did "ttytype -s" it shows TERM=vt100; export TERM. After i manually typed "export TERM=dtterm; export TERM", still ttytype shows as vt100. Please correct me if i am wrong, what i understood is ttytype finds what terminal type is and it does not set TERM variable and we can override with TERM variable.

still i am having problem mapping my keyboard to our specific application requirments. I am going nuts here.

Anybody can throgh some light on this issue

thanks......
Be Teachable