2016-04-22 22:46 GMT+03:00 Dominique Pellé <[email protected]>: > 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.
Don’t fool yourself, this is placebo. Xterm uses nearest color from its 8-bit palette, not true color. > > 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. On the other hand these terminals are libvte-based, so they must be able to display true colors. Just you need to update libvte. See https://gist.github.com/XVilka/8346728 for a list of supported terminals. According to this first vte version to support true color is 0.36. > > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- 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.
