Jason Franklin wrote:

> I rewrote my script to be much simpler.  It shows both the escape codes
> being printed and
> the word "example" in each color.
> 
> > In your screenshots the bold colors are clearly wrong.
> 
> I discovered this was caused by a GNOME Terminal setting called "Show bold
> text in bright colors".
> This was enabled, and it caused the colors to appear off.
> 
> The colors are still different in Vim terminal and a plain GNOME Terminal.
> 
> I have attached:
> 
> 1. A screenshot of my GNOME Terminal color settings, so you can see exactly
> what I'm using.
> 2. The new colors script (much simpler, no tput).
> 3. Image of colors running in plain GNOME Terminal.
> 4. Image of colors running in vim terminal window (./vim --clean, latest
> vim).
> 
> I hope this can give some indication of what the heck is going on. :/

It does.  I can now see that in a terminal the bold attribute is used
both to make the color bright (add 8 to the color index) and to make the
text bold.

Must be caused by enabling "use bright color for bold" in the vterm
settings.  It was using "t_colors >= 16", but that should probably be
"t_colors < 16", since the bold-bright mechanism makes most sense for a
terminal with 8 colors.  Fortunately, the change doesn't break a test,
thus there is good hope this just works.  And perhaps I can add a test
for the fix... yes.

-- 
ARTHUR: Old woman!
DENNIS: Man!
ARTHUR: Man.  I'm sorry.  Old man, What knight live in that castle over there?
DENNIS: I'm thirty-seven.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201905131827.x4DIRd79006831%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui