1826691 Members
2482 Online
109696 Solutions
New Discussion

vi problem

 
SOLVED
Go to solution
iambluegary
Advisor

vi problem

i find vi has some problem,the problem is when i input vi filename,there should be a new screen,and i can do anything i want,but now there something wrong:
#cat >file
hello
hello
#vi file
0y0C


what's the problem?
help ,help,help :-)
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor
Solution

Re: vi problem

Hi,

Appears to be a terminal emulation problem.

Check your TERM settings, try vt100:

# echo $TERM
# export TERM=vt100
# vi file

Hope this helps. Regards.

Steven Sim Kok Leong
Michael Tully
Honored Contributor

Re: vi problem

Hi,

Your problem is the terminal type your using for this session:

To fix it:

# export TERM=vt100
# clear

If the screen clears, then your ok, if not you will need to try a different terminal type:

These are the normal ones:

# export TERM=hpterm
# export TERM=70096 (standard console)
# export TERM=hp

One of these should work.

HTH
~Michael~

Anyone for a Mutiny ?
Steven Sim Kok Leong
Honored Contributor

Re: vi problem

Hi,

Appears to be a terminal emulation problem.

Check your TERM settings, try vt100:

# echo $TERM
# export TERM=vt100
# vi file

Hope this helps. Regards.

Steven Sim Kok Leong
Michael Tully
Honored Contributor

Re: vi problem

Hi,

Your problem is the terminal type your using for this session:

To fix it:

# export TERM=vt100
# clear

If the screen clears, then your ok, if not you will need to try a different terminal type:

These are the normal ones:

# export TERM=hpterm
# export TERM=70096 (standard console)
# export TERM=hp

One of these should work.

HTH
~Michael~

Anyone for a Mutiny ?