LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2003, 09:55 AM   #1
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
Question F1 keys not working when telneting to SCO machine.


We have a SCO unix server here that runs an app that is in an ansi type menu system gui. one can select different menus using the arrow keys and to return to a previous menu you can press 'F1'.

The term type running on the server is ansi.

The problem is when i telnet to this server from another linux machine (even after setting my TERM=ansi first, the function F1 key doesnt work. It jumps to the menu selction ebginning with the letter 'A'

What i tried to do to resolve this was run a csh prompt:
press the F1 key and press return:

^[[[A

comes up. the ^[ being a control char. I opened up the /usr/mdutil/data/terminfo/ansi.src file and ammended the line:

kf1=\E[M, kf2=\E[N, kf3=\E[O, kf4=\E[P,

to
kf1=\E[[[A, kf2=\E[N, kf3=\E[O, kf4=\E[P,

saved and existed. then ran tic ansi.src and again i typed TERM=ansi;export TERM. I then ran the app and it does EXACTLY the same thing as before i made any change. Pressing F1 jumps the menu section beginning with the letter 'A'.

If i log into the SCO server from a win98 machine running a third party telnet program (tinyTERM) it works fine. Normal windows telnet doesnt work either.
 
Old 03-12-2003, 11:26 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
possibly your app is not using terminfo, but termcap (man termcap)
 
Old 03-13-2003, 04:02 AM   #3
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Original Poster
Rep: Reputation: 30
i dont see how this is going to make a difference.

If it does then how come one telnet program works and another doesnt? I dont think this is the case. plus i dont have access to the said app as it is a unix app therefore not under the gnu licence.

thank you anyway,
 
Old 03-13-2003, 07:03 AM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
the $TERM variable tells your app what kind of terminal you are running. you can't alter the emulation by simply seting $TERM to ansi :-)

i suggest you set $TERM variable on the SCO box to "linux", "xterm" ,"xterm-color" or whatever your $TERM is on your linux and compile the correspondig terminal description on SCO if it is unknown there (man tic, man infocmp).
 
  


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
getting bluetooth SCO working RijilV Linux - Hardware 0 06-15-2005 02:06 AM
some keys not working in X M&M Linux - Software 1 05-20-2005 01:47 PM
random keys not working walden Slackware 4 02-16-2005 06:55 PM
Trouble Telneting out of the Machine matrim Linux - Hardware 0 01-04-2005 12:34 AM
telneting remote machine from a shell script sanjith11 Programming 11 05-26-2004 07:50 AM


All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration