LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 06-21-2004, 10:20 AM   #1
lazlom
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Rep: Reputation: 0
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.
 
Old 06-21-2004, 11:25 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
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
 
Old 06-21-2004, 02:42 PM   #3
lazlom
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I am using xterm. What would I need to set for the right arrow key?
 
Old 06-21-2004, 02:50 PM   #4
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Have you tried others to see if it makes any difference e.g. lft?
 
Old 06-21-2004, 03:12 PM   #5
lazlom
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 06-21-2004, 03:32 PM   #6
zorba4
Member
 
Registered: Feb 2004
Location: Paris
Posts: 398

Rep: Reputation: 31
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

Last edited by zorba4; 06-22-2004 at 05:56 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tab Key and arrow key zillah Solaris / OpenSolaris 12 05-26-2005 02:51 PM
Backspace key mapping in vi arobic Linux - General 2 06-30-2004 01:30 PM
down arrow key problem rcbob Linux - Software 0 06-05-2004 07:58 PM
Detecting Arrow Key Presses in C / C++ BooKA. Programming 8 04-07-2004 06:10 AM
mapping delete key sboyce57 Linux - Newbie 1 02-22-2004 11:05 PM


All times are GMT -5. The time now is 01:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration