LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-04-2004, 10:12 PM   #1
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Rep: Reputation: 30
Angry Terminal Problems


Well, I use two conflicting interests on my laptop.

First off, I use VIM and love the color. It allows me to browse system files and C programs VERY quickly and view everything nicely.

However, I need to be able to log into SUN Solaris 9 servers (that's my job).

Now, VIM will only allow colors when my terminal type is set to "linux". NOT xterm or vt100 or anything else.

However, standard vi in Solaris 9 doesn't recognize the linux terminal type so when I ssh in, I cannot view any files or anything! It says unrecognized terminal type. What can I do???

Thanks!

-G
 
Old 01-05-2004, 01:37 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I've never tried this but what about creating a script called "vtssh" somewhere in your path containing:
Code:
#!/bin/bash
TERM="vt100"
ssh $@
Then to ssh to a host:
vtssh user@somehost

This will start a new shell with a vt100 term type in which the ssh session is started.
 
Old 01-05-2004, 02:00 PM   #3
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
or you can use "gvim"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal problems teto Linux - Newbie 3 10-26-2005 06:28 PM
Terminal command problems rogleale Linux - Newbie 3 06-21-2004 06:41 AM
Pseudo Terminal Problems ailiez Programming 2 02-09-2004 01:58 AM
Terminal Problems JC404 Linux - Newbie 0 06-27-2003 11:03 PM
Terminal name related problems CARTMAN Linux - Newbie 1 02-13-2002 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration