Operating System - HP-UX
1825693 Members
3298 Online
109686 Solutions
New Discussion

vi issue with 10.20 PLEASE HELP!

 
SOLVED
Go to solution
Dan Maul
Trusted Contributor

vi issue with 10.20 PLEASE HELP!

I was given an old HP workstation that has HP-UX 10.20. The problem is I wasn???t given the password for root. I was able to null out the old password and replace it. Now the problem I have is using vi. When I attempt to vi, it pops up a message ???I don???t know what terminal you are using, using open mode???. If I ignore the message and try to edit the file, it jumbles up the format. How do I correct this?
I always keep a supply of stimulant handy in case I see a snake--which I also keep handy.
4 REPLIES 4
Umapathy S
Honored Contributor
Solution

Re: vi issue with 10.20 PLEASE HELP!

Dan,
export TERM=hpterm
or
export TERM=vt100.

It will work fine.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Mark Grant
Honored Contributor

Re: vi issue with 10.20 PLEASE HELP!

You need to find what terminal you are using. If it is an xterm session it would be "xterm" or "vt100" and do

export TERM=xterm

Then start vi.

If you only have a vague clue about what terminal you are using look thriough /etc/termcap for possible entries and export the correct term type as mentioned above.
Never preceed any demonstration with anything more predictive than "watch this"
Bhuvaneswari Selvaraj
Valued Contributor

Re: vi issue with 10.20 PLEASE HELP!

Just include the following in your .profile. that will solve your problem
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
Dan Maul
Trusted Contributor

Re: vi issue with 10.20 PLEASE HELP!

Thanks Guys!!
It's fixed and I'm moving forward, for now.
Thanks again all.
I always keep a supply of stimulant handy in case I see a snake--which I also keep handy.