LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   Arrow Key mapping (https://www.linuxquestions.org/questions/aix-43/arrow-key-mapping-195991/)

lazlom 06-21-2004 10:20 AM

Arrow Key mapping
 
I am trying to use a command line application on AIX 5.1L though a telnet session. This application needs to use the right arrow key to make sub-menu choices. I cannot get this key to work.
Any help would be appreciated.
Thanks in advance.

iainr 06-21-2004 11:25 AM

This is probably down to terminal mapping. Hopefully it can be fixed without resorting to the depths of termcap.

Check the TERM variable with echo $TERM. Try different values and see what works

e.g.
lft
ibm3151
vt100
vt220

lazlom 06-21-2004 02:42 PM

I am using xterm. What would I need to set for the right arrow key?

iainr 06-21-2004 02:50 PM

Have you tried others to see if it makes any difference e.g. lft?

lazlom 06-21-2004 03:12 PM

Thanks for the replies, but I have searched through the AIX documentation, on IBM's site and on the internet w/o any luck on how to get this to work. What I am looking for is the command that will enable the right arrow key from within a telnet session.
Thanks.

zorba4 06-21-2004 03:32 PM

lazlom : what Iainr is saying is right : you should try using other terminal definitions, find one (probably vt220, I guess) which whould have the correct definition for the right arrow. Instad of trying to difine by yourself the keymaps, simply try to type "TERM=vt220; export TERM", and see how your application behaves. If it does not work correctly, try another terminal definition.
Another possibility : how are you connecting via telnet ? Are you using a PC with an X-term emulation ? then, have a look at the terminal emulation settings. For instance if you are using Putty, you should quote "XtermR6" keypad or "Linux" keypad.
Regards
zorba


All times are GMT -5. The time now is 06:19 AM.