problems using vi

Joined
Dec 23, 2005
Messages
44
Reaction score
0
Points
6
Location
London, UK
Your Mac's Specs
PowerBook G4 17", 1.67GHz, 2GB RAM, 120 GB HDD. Ipod 20GB
Hi boys and girls,

I'm having a little problem and I hope someone could help me out.

The problem arises whenever I try to modify any file on my solaris system using vi. I'm using Solaris 10 and Mac OSX operating Systems. I'm connected to Solaris through SSH.

Now, when I try to modify any file, I tend to get this message (shown below). How can I get around this?

vi shutdown
xterm-color: Unknown terminal type
I don't know what kind of terminal you are on - all I have is 'xterm-color'.
[Using open mode]
"shutdown" [Read only] 218 lines, 4094 characters
#!/sbin/sh

The result is the same if I run the command from both the superuser console or just an ordinary cosole.

Thanks in advance.
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
set your terminal type to vt100 and you should be okay.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top