Bram Moolenaar <b...@moolenaar.net> 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. 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. Regards Dominique -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.