Operating System - Linux
1843976 Members
1727 Online
110226 Solutions
New Discussion

Mapping keys in a script.

 

Mapping keys in a script.

Hi there,

We have a system running on an L-Class server. We connect to it using vt100 emulation software running on a PC. However, the powers that be have discovered that we can connect to our system using Windows CE dumb terminals, of which we have loads.

The problem is the software running on the L-Class uses all the function keys found on a modern keyboard. This is easily done on a PC but, when connecting with a WinCE terminal, only F1-F4 work, and the arrow keys also do not work.

Is there any way I can write a script to map F5-F12 and the arrow keys to DEC type keys that runs whenever someone logs on.

Thanks in advance

Christian Briddon
1 REPLY 1
Kodjo Agbenu
Honored Contributor

Re: Mapping keys in a script.

Hello,

I think that you have to make your own termcap/terminfo, then load it in a script using :

export TERM=my_term

However, I would suggest you try existing ones before trying to build your own. To get a list of all TERMs supported on hp-ux :

/usr/share/lib/terminfo

I know that the "tic" command (Terminal Info Compiler) can be used to parse a text file and generate terminfo. However, as I have never used it for myself, I cannot explain how it works.

Good luck

Kodjo

P.S. This forum is reserved to Linux purposes.
Learn and explain...