On Thu, Apr 02, 2009 at 07:51:21PM -0700, Gary Johnson wrote:
> On 2009-04-02, Taylor Venable wrote:
> > I have an xterm compiled with 256 color support.  In Vim 7.2.88 after
> > it loads up I can do :set t_Co to find that 256 color support is being
> > found correctly (TERM = xterm-color).  However, I cannot figure out
> > how to determine whether 256 colors are supported on startup, as the
> > value of t_Co is 8 at the time my .vimrc is loaded.
> > 
> > I've tried a few autocommands, such as VimEnter and TermChanged but
> > the value of t_Co in both of them is still 8, rather than the 256 I
> > expect.  At what point does t_Co get set to reflect the capabilities
> > of the terminal, and how can I detect it during startup?
> 
> Or are you saying that t_Co gets set automatically somehow to 256
> and you don't know where that is?  If so, you can find out by
> executing
> 
>     :verbose set t_Co?

Somebody on IRC suggested this too but all this command shows is that
t_Co = 256 and no hint of where it came from.  The value is definitely
8 while .vimrc is being executed but at some point after that (also
after the VimEnter autocommand) it's being set to 256.

-- 
Taylor Christopher Venable
http://real.metasyntax.net:2357/

((λ x . x x) (λ x . x x))

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to