Dominique wrote:

> Bram Moolenaar <[email protected]> wrote:
> >
> > Christian Brabandt wrote:
> >
> >> > On Do, 21 Apr 2016, Bram Moolenaar wrote:
> >> >
> >> > > Patch 7.4.1770
> >> > > Problem:    Cannot use true color in the terminal.
> >> > > Solution:   Add the 'guicolors' option. (Nikolai Pavlov)
> >> > > Files:      runtime/doc/options.txt, runtime/doc/term.txt,
> >> >
> >> > > ! Sometimes setting 'guicolors' is not enough and one has to set the 
> >> > > |t_8f| and
> >> > > ! |t_8b| options explicitly. Default values of these options are
> >> > > ! `^[[38;2;%lu;%lu;%lum` and `^[[48;2;%lu;%lu;%lum` (replace `^[` with 
> >> > > real
> >> > > ! escape) respectively, but it is only set when `$TERM` is `xterm`.
> >> >
> >> > That part isn't true, is it?
> >> > I always have to explicitly set t_8f and t_8b according to the
> >> > documentation. But it would be great, if it could work according to the
> >> > documentation.
> >> >
> >> > #v+
> >> > ~/vim/src$ TERM=xterm ./vim -u NONE -N -i NONE --cmd 'set guicolors'
> >> > --cmd ':set term? t_8f? t_8b?' --cmd ':q!'
> >> >   term=xterm  t_8f=  t_8b=
> >> > ~/vim/src$
> >> > #v-
> >>
> >> I think, this patch fixes it:
> >
> > Thanks!  I'll also fix the strange #ifdefs for xterm.
> 
> 
> Thanks, using vim-7.4.1778, I now have gui colors
> with 256 colors in the terminal, but... only if I use xterm.
> 
> If I use xfce4-terminal or gnome-terminal, the terminal
> becomes black and white as soon as I set guicolors.
> Yet gnome-terminal or xfce4-terminal are capable of
> using 256 colors. I could use gui colors with CSApprox
> plugin in those terminals.
> 
> I'll switch to using xterm, but I suppose that many
> people use gnome-terminal or xfce4-terminal and might
> have the same issue.

We can add more builtin termcap entries.  Just need to know the name of
the terminal and the t_8f and t_8b values.

> On the plus side, when using xterm with "set guicolors"
> instead of the CSApprox plugin, Vim startup time is
> is much faster: 122 msec instead of 322 msec.

-- 
ARTHUR:        I command you as King of the Britons to stand aside!
BLACK KNIGHT:  I move for no man.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui