Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using telnet with interactive programs, eg Vi & less ?? 1

Status
Not open for further replies.

ryen

Programmer
Jul 29, 2002
22
US
I'm not that experienced with telnet programs, but here's my question. I have a linux box. When I telnet into it, from the standard windows telnet program, I can't run any programs such as Vi editor, or 'less', etc. I think it just has to do with the functionality of the telnet protocol, only being able to write lines to the screen one at a time, and keep a buffer.. (i don't know if that made sense.) Is there any telnet, or other program I could use which would let me access programs like Vi as if I were at the actual linux workstation? Thanks,
-ryen
 
There is no reason why you should not be able to use vi, more or any other application across a telnet session. I suspect the problem is related to your telnet client running on the windows system.

I think you will find is that the telnet client (on windows) and the telnet server (on the linux box) can't agree on the terminal emulation to use.

The telnet client on windows defaults to vt100 emulation (check the preferences menu) but the linux server defaults to a linux emulation, the result is that the paging is messed up in vi and other screen addressing applications.

The answer is to explicitly set the terminal emulation within linux once you have telnetted in from windows as follows (assuming your telnet client is set to vt100 mode)....


telnet linux_box
do the sign on stuff
TERM=vt100
export TERM
now do your work

--- note that the TERM and vt100 text is case sensitive.

Hope this helps - Gavin
 
great, thanks a ton i appreciate it
 
actually, i just tried what you said, and it still didn't fix it. BUT, i think the client is just screwy (i think you're advice should have worked normally though.) i downloaded a client called Token 2 from download.com, works great now. thanks again.
 
ssh user@x.x.x.x is a better solution.

Try putty for a Win32 box.

Putty can do a lot more than ssh and telnet.

Great program.

Frank
 
Hi,
I was using telnet to access linux on a robot and I had similar problems. Check out the other text editors, I think it was ed that was a lot easier to use for telnet although a bit antiquated. Any linux book, which I have none with me will bring you up to speed on the simple commands.
Kev
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top