Dominique Pellé <[email protected]> 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.
What I wrote above was with xubuntu-14.04. Trying with xubuntu-15.10, 'guicolors' works with gnome-terminal (so there is an improvement), but still does not work with xfce4-terminal. This page https://gist.github.com/XVilka/8346728 says that xvce4-terminal will support true colors when it's migrated to gtk3. It would be nice if 'guicolors' worked not only with true colors (16 million colors) but also with 256 colors terminals. CSApprox plugin makes GUI colors in colorscheme work using 256 colors terminal, which in practice is good enough, and works on more terminals than the builtin 'guicolors' option: http://www.vim.org/scripts/script.php?script_id=2390 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.
