  | |  | Telnet Function key definitions | Telnet Function key definitions 2002-08-28 - By A.J. Werkman
Back I want to telnet to a unix server (AIX) and run an application that wants me to use a terminal description called pc ie. I have to set the TERM value to "pc ". This one is not present on the RH distribution. If I change the TERM variable to pc and do a "clear "-command, it gives me "/usr/share/terminfo/p/pc file not found ".
It also expects functionkey strings: F1: <esc >[M F2: <esc >[N F3: <esc >[O ......etc.
What I did is this:
With infocmp I extracted the "linux " terminfo file to an ASCII version. I then changed the first field to match the TERM variable ( "pc "). Further I edited the function key definitions to match the above sequence. I than recompiled this definition with "tic ".
Now when I change my env-variable TERM to pc and do a "clear " command the screen is cleared. So the terminal-file is correctly hooked in the system. When I now log into the AIX the session is accepted, so the TERM variable value is transfered to the AIX side correctly.
But when I use the Function-keys the application does not respond as expected. I see a string on the screen like "[[C~ " what probably means my telnet side is sending a wrong string on hitting a function-key, although I defined them correctly.
Does anyone see what is going wrong here?? Am I working from a wrong theoretical model or am I overlooking some configuration error to get things right.
Thanks in advance, Koos Werkman.
|
|
 |