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. |
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 |
I am using xterm. What would I need to set for the right arrow key?
|
Have you tried others to see if it makes any difference e.g. lft?
|
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. |
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. |