Operating System - HP-UX
1827293 Members
1354 Online
109717 Solutions
New Discussion

Telnet Problem, when I use vi editor

 
SOLVED
Go to solution
Lee Joon Moon
Occasional Advisor

Telnet Problem, when I use vi editor

Hello Everyone

When I use HPUX 11.0, I got some problem.
I used telnet on Windows to login HPUX.
When I use vi editor, I cann't read bottom line exactly. Beause the line changes next line continusly. So I cann't read bottom line in vi.
So How can I fix this problem?

Thank you.

6 REPLIES 6
Rajeev  Shukla
Honored Contributor
Solution

Re: Telnet Problem, when I use vi editor

export your terminal profile, use VT100 that will solve the problem.
After login use
$export TERM=vt100
then use vi, it should be fine

Cheers
Rajeev
Radhakrishnan Venkatara
Trusted Contributor

Re: Telnet Problem, when I use vi editor

Hi,

It happens when you are using ANSI terminals and other some terminal modes.
Try to use to generic terminals such as vt100,vt220 set it in your telnet client.
it will do.


regards

Radhakrishnan
Negative thinking is a highest form of Intelligence
Sunil Sharma_1
Honored Contributor

Re: Telnet Problem, when I use vi editor

Hi,

It happened because of mismatch of TERM setting. You set the TERM environment according to Windows telnet property. Windows Telnet doesnot give much option in this.

You can download some other terminal emulator from net and use it.

*** Dream as if you'll live forever. Live as if you'll die today ***
Lee Tae-kyung
Regular Advisor

Re: Telnet Problem, when I use vi editor

ì ë í ì ¸ì ...Hi LJM..

# resize
COLUMNS=120;
LINES=24;
export COLUMNS LINES;
# stty cols 120 rows 24

The above action make your problem solve.^^
(ì ì ê° ì ´ resizeí ì ê³  sttyë¡
I think I am a specialist in IT Korea^^. I am a programmer and SE and DBA
Arnold Hausmann
Occasional Advisor

Re: Telnet Problem, when I use vi editor

I've always found Tera Term Pro to be extremely useful--much better than Windows telnet. You can download it from www.tucows.com.
Stuff happens...that's why Jesus saves.
Bill Hassell
Honored Contributor

Re: Telnet Problem, when I use vi editor

In the old days, there were 'real' terminals and all but the dumbest terminals could identify themselves and some of their characteristics. Today, most people use PCs thinking that all terminals are the same. In HP-UX there are 1,800 terminal definitions. The telnet protocol can supply a value for TERM which is critical to vi, but PCs know very little about terminal emulation and the telnet subcodes often mis-identify the emulator. Worse off, the PC program may a poor implementation of the terminal that it is trying to emulate and this will cause vi (and many other programs) to display incorrectly.

As mentioned, get a good emulator. When you telnet using Windows, you are usually running Hyperterminal which doesn't state anything about standards conformance. The best terminal emulator is WRQ's Reflection for HP, or you can use QCTerm which is free and is a smart terminal emulator. Be sure that ttytype is always run in your login profile to set your TERM variable correctly.


Bill Hassell, sysadmin