Discussion:
No colors in VT100 term with vi or mc
(too old to reply)
Ohmster
2005-08-16 06:10:18 UTC
Permalink
I run fedora core 3 and often use a term program (SecureCRT, it is like
putty.) to ssh to my machine. I have the term program set for VT100 with
ansi color and it works fine. All ls commands are in color, slrn is in
color. vi used to be in color but not anymore. I can run vi (vim,
actually) on the console and I get colors, but if I run vi from my remote
term program, vi is monochrome, not even highlights, just monochrome.
Yet, the term does do color quite nicely.

If I use the screen command from my remote term program and then run vi,
I get my colors back. What could be wrong with vim in that it will no
longer run in color with a vt100 term?

I will output some of my set variables with the "set" command:
TERM=vt100
(no vim color)

Running screen in the terminal:
TERM=screen
(vim color)

When logged into the console locally (No xwindows):
TERM=linux
(vim color)

This vt100 only affects vim. ls and slrn all have good color. Oh, here is
another thing. mc works great on the console and is in good color. mc in
the vt100 remote term window is all monochrome. If I run the screen
command, then mc will run in color in the vt100 term. (I cannot seem to
exit mc with F10 for some reason on the vt100 term, no matter what I do.
I have to just kill the term window to get out of it) So maybe it is not
just a vi issue, but something wrong with the way terms are presented to
certain programs like mc and vim? I really don't know. vi used to work in
color in the vt100 window and now it does not. There is nothing specific
that I can remember changing to make this happen.

Does anyone have any idea as to why vim will not do color anymore in a
vt100 term? I have been at this all night and am cross eyed, I give up,
this is making me nuts. Somebody please take a stab at this. Thanks.
--
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Kevin Handy
2005-08-16 16:55:32 UTC
Permalink
Post by Ohmster
I run fedora core 3 and often use a term program (SecureCRT, it is like
putty.) to ssh to my machine. I have the term program set for VT100 with
ansi color and it works fine. All ls commands are in color, slrn is in
color. vi used to be in color but not anymore. I can run vi (vim,
...
Post by Ohmster
TERM=vt100
(no vim color)
vt100's don't do color, thus the definition for that terminal doesn't
define how to handle color. You need a TERM value that does color.
Post by Ohmster
TERM=screen
(vim color)
TERM=linux
(vim color)
...
Post by Ohmster
Does anyone have any idea as to why vim will not do color anymore in a
vt100 term? I have been at this all night and am cross eyed, I give up,
this is making me nuts. Somebody please take a stab at this. Thanks.
Something changed in your configuration: either on the Linux
side, or on the terminal emulator side. Have you edited any
startup files/configuration?

Look at 'man terminfo' and 'man termcap'. Maybe also 'tset'.
This should get you started.

You need to change TERM to a value that does color.

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
SINNER
2005-08-17 00:30:38 UTC
Permalink
Post by Ohmster
I run fedora core 3 and often use a term program (SecureCRT, it is like
putty.) to ssh to my machine. I have the term program set for VT100 with
ansi color and it works fine. All ls commands are in color, slrn is in
color. vi used to be in color but not anymore. I can run vi (vim,
actually) on the console and I get colors, but if I run vi from my remote
term program, vi is monochrome, not even highlights, just monochrome.
Yet, the term does do color quite nicely.
I wonder if you try backing up your existing .vimrc and putting the
default out there as yours would resolve your issue. Certainly worth a
shot

$ cp ~/.vimrc ~/.vimrc-backup
$ cp /usr/share/vim/vim63/vimrc_example.vim ~/.vimrc

check the location of course.

If this works you can move any customizations in one at a time and see
which one, if any caused the problem. IIRC you did say at one point it
worked as you liked in another post, am I mistaken?

[...]
--
David
You will be attacked by a beast who has the body of a wolf, the tail of
a lion, and the face of Donald Duck.
Ohmster
2005-08-18 03:54:10 UTC
Permalink
Post by SINNER
I wonder if you try backing up your existing .vimrc and putting the
default out there as yours would resolve your issue. Certainly worth a
shot
Actually, it ended up being my term program, Sinner. SecureCRT does vt100
emulation and it does work for a lot of color like ls and slrn, but it
stopped giving color for vim and I get no color from mc, worse with mc, the
F keys did not work. I downloaded putty and life is grand now. Putty shows
all of the colors with it's xterm emulation, even the mc keys work now.
Thanks for helping.
--
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Bill Marcum
2005-08-23 20:45:41 UTC
Permalink
On Tue, 16 Aug 2005 06:10:18 GMT, Ohmster
Post by Ohmster
I run fedora core 3 and often use a term program (SecureCRT, it is like
putty.) to ssh to my machine. I have the term program set for VT100 with
ansi color and it works fine. All ls commands are in color, slrn is in
color. vi used to be in color but not anymore. I can run vi (vim,
actually) on the console and I get colors, but if I run vi from my remote
term program, vi is monochrome, not even highlights, just monochrome.
Yet, the term does do color quite nicely.
If I use the screen command from my remote term program and then run vi,
I get my colors back. What could be wrong with vim in that it will no
longer run in color with a vt100 term?
A real VT100 terminal does not have color. Try setting TERM=putty or
TERM=pcansi.
--
Knowledge, sir, should be free to all!
-- Harry Mudd, "I, Mudd", stardate 4513.3
Loading...