Gabriel Barta wrote:
> Please find attached a patch to allow the use of termguicolors on
> windows console builds.
> The default windows console doesn't support 24-bit color, but the
> ConEmu[1] project does.
>
> Without this patch, enabling termguicolors on a Windows console build
> of vim running under ConEmu would generate 24-bit colors, but they
> would not be the correct colors.
>
> The problem was that the RGB macro provided by Windows actually
> creates BGR values. This is OK for Windows GVim builds, because the
> Windows API expects colors in this format and vim seems set up to
> simply pass these colors through to the end platform, but the
> termguicolor support requires the color values to actually be encoded
> in RGB order. So instead, we should only use the existing RGB macro
> when not building FEAT_GUI.
Thanks. To be on the safe side I'll make the condition:
# if defined(RGB) && defined(WIN32) && !defined(FEAT_GUI)
--
Some of the well known MS-Windows errors:
EMEMORY Memory error caused by..., eh...
ELICENSE Your license has expired, give us more money!
EMOUSE Mouse moved, reinstall Windows
EILLEGAL Illegal error, you are not allowed to see this
EVIRUS Undetectable virus found
/// 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.