From: Gary Johnson <[EMAIL PROTECTED]>
Subject: Re: TERM setting under Gentoo Linux
Date: Thu, 20 Apr 2006 17:25:17 -0700

> On 2006-04-21, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> >  in respect of colorschemes: What is the "best" setting for the TERM
> >  environmental variable ? I did a ":help TERM" but found nothing which
> >  would answer my question.
> 
> I guess it would be "xterm-256color", if your xterm supports that 
> many colors.  It probably does.  Otherwise, "xterm-88color" or 
> "xterm-16color" would still give you more than the 8 colors 
> supported by "xterm-color" or "xterm".
> 
> >  The colorscheme section of that pages
> >  stated that "xterm-color" would have color, but my current settings
> >  are "TERM=xterm" and I do have (less? only a few?)  colors...
> > 
> >  Unfortunately I only have the compiled version of the terminfo
> >  database...
> 
> To see the terminfo database description of your terminal ($TERM) on 
> a Linux system, execute "infocmp" at the shell prompt.  The third 
> line of output from that command should contain the numerical 
> parameters and their values; "colors#" will have the number of 
> colors supported.
> 
> To see what terminals are supported by your terminfo database, 
> execute "toe" (or maybe "toe | grep xterm") for a listing of 
> terminal types and their descriptions.
> 
> You can find out more about the terminfo database and tools to 
> access and manipulate it from these man pages:
> 
>     terminfo
>     infocmp
>     tic
>     toe
> 
> Making a personal, customizable copy of the terminfo database entry 
> for your terminal isn't too difficult, should you need to so.  I 
> wouldn't think you'd need to do that on a Linux system, though.
> 
> HTH,
> Gary
> 
> -- 
> Gary Johnson                 | Agilent Technologies
> [EMAIL PROTECTED]     | Wireless Division
>                              | Spokane, Washington, USA
> 

Hi Gary,

 one question remains -- I thought it has something to do with the
 (previously) limited number of colors of my TERM settings...but...

 "desert" is described as "dark color scheme".

 When I start vim (NOT gvim -- I am more commandline related ;) on 
 a mrxvt (terminal a la xterm), which has a black background set per
 default and then load "desert" either via vimrc or by hand everthing
 looks nice.

 But when I do the same on a "not inverted" mrxvt (black characters on
 white background - the default) the "desert" colors came out rather
 unreadable (some keywords are highlighted bright yellow on white 
 background.... :/ ) -- the background does not change to black.

 In the head of the desert.vim file I found:
 set background=dark

 Since desert.vim not only defines color settings for "gui*" but also
 for "cterm*" I think it should work on both.

 Since desert.vim is rated on vim.org very high, I think the problem is on
 my side anywhere ...  ;O)

 I set TERM to xterm-256color now and checked with infocmp, that there
 are really 256 colors.

 What did I wrong so badly here ?

 Kind regards,
 mcc

Reply via email to