Konsole color highlighting

James Wilkinson fedora at aprilcottage.co.uk
Sat Dec 9 18:40:58 UTC 2006


Paul Lemmons wrote:
> What causes a konsole session to show or not show colors? I have one
> machine that "ls" will show color coded files and vi will show syntax
> highlighted text. On another machine everything is green.

The first thing to look at is how your TERM environment variable is set.
If programs think your terminal can't show colours, they won't try.

You may find part of
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186862 relevant --
it talks about adding support for xterm-256color for ls.

Richard England wrote:
> For GVIM, the colors I believe are dependent on whether you are 
> running console (vim) or gui (gvim).  I don't think console vim has color 
> ability (that may have changed for later versions of vim, though).

I don't think that's the question -- it certainly hasn't been recently.
Console vim can certainly use colours if it's called as vim -- note that
normal users have vi aliased to vim by default:
$ which vi
alias vi='vim'
        /usr/bin/vim
whereas root doesn't:
# which vi
/bin/vi

Hope this helps,

James.

-- 
E-mail:     james@ | You can accept the existence of rain without denying the
aprilcottage.co.uk | existence of umbrellas.
                   |     -- http://ozyandmillie.org/2006/om20060615.html




More information about the fedora-list mailing list