Nikolay Aleksandrovich Pavlov <[email protected]> wrote:
> 2016-04-21 22:39 GMT+03:00 Kent Sibilev <[email protected]>:
>> On Thursday, April 21, 2016 at 3:11:42 PM UTC-4, 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,
>>> runtime/doc/various.txt, src/auto/configure, src/config.h.in,
>>> src/configure.in, src/eval.c, src/globals.h, src/hardcopy.c,
>>> src/option.c, src/option.h, src/proto/term.pro, src/screen.c,
>>> src/structs.h, src/syntax.c, src/term.c, src/term.h,
>>> src/version.c, src/vim.h
>>>
>>
>> That's great, but how do I set it?
>>
>> :set guicolors?
>> E519: Option not supported: guicolors?
>> :echo &guicolors
>> 0
>> :set guicolors
>> :echo &guicolors
>> 0
>>
>> Also now when running 'make install' I get the following error at the end:
>>
>> if test -d /usr/local/share/applications -a -w
>> /usr/local/share/applications; then \
>> cp ../runtime/vim.desktop \
>> ../runtime/gvim.desktop \
>> /usr/local/share/applications; \
>> if test -z "" -a -x ; then \
>> -q /usr/local/share/applications; \
>> fi \
>> fi
>> /bin/sh: line 0: test: argument expected
>
> To get &guicolors you should use --enable-termtruecolor at configure
> stage. Not sure why you get that error at `make install`, AFAIR I did
> not edit anything that should affect installation process.
Hi Nikolay
I just tried it on xubuntu-14.04.4 (xfce4-terminal, TERM=xterm-256color)
but it does not work yet for me and there are compilation warnings:
$ ./configure -with-features=huge --enable-termtruecolor --enable-gui=none
$ make -j4
...
gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -Wall -Wextra
-Wmissing-prototypes -Wunreachable-code -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1 -o objects/syntax.o syntax.c
syntax.c: In function ‘gui_do_one_color’:
syntax.c:9548:10: warning: unused parameter ‘do_menu’ [-Wunused-parameter]
int do_menu, /* TRUE: might set the menu font */
^
syntax.c:9549:10: warning: unused parameter ‘do_tooltip’ [-Wunused-parameter]
int do_tooltip) /* TRUE: might set the tooltip font */
^
...
gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -Wall -Wextra
-Wmissing-prototypes -Wunreachable-code -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1 -o objects/term.o term.c
term.c: In function ‘termtrue_mch_get_color’:
term.c:1357:16: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
for (i = 0; i < sizeof(rgb_table) / sizeof(rgb_table[0]); i++)
^
term.c:1387:6: warning: ignoring return value of ‘fgets’, declared
with attribute warn_unused_result [-Wunused-result]
fgets(line, LINE_LEN, fd);
^
Ex command :version shows that I have +termtruecolor (good).
However, it does not work.
If add this line in my ~/.vimrc, then vim becomes black and white
whereas without it, vim had colors:
set guicolors
If I put those lines in my ~/.vimc, then vim crashes:
set guicolors
set t_8f=^[[38;2;%lu;%lu;%lum
set t_8b=^[[48;2;%lu;%lu;%lum
$ vim
*** buffer overflow detected ***: ./vim terminated
(followed by a garbled message)
Vim: Double signal, exiting
Segmentation fault (core dumped)
I'm hoping that this feature, when it works, will allow me to
remove the CSApprox.vim plugin:
http://www.vim.org/scripts/script.php?script_id=2390
The CSApprox plugin worked fine so far to get GUI colors
in the terminal, but it's quite slow at startup.
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.