Francois Ingelrest wrote:
> On 16 August 2017 at 22:46, Bram Moolenaar wrote:
> > If I use a dark color them: ":colors darkblue", and open a terminal with
> > :term, then the terminal window has a dark background.
> >
> > libvterm does not recognize t_RB, I don't see how it matters. Perhaps
> > your 'background' value in Vim is actually not set to "dark"?
>
> You are right, setting background to dark solves the issue.
>
> I'm not sure I understand why, since according to :h background
> setting this option does not set the background color. Shouldn't the
> background color of normal buffers be used in terminal buffers as
> well?
Quite often the cterm background color is not set or is a value for
which we don't know what the RGB values are.
We could use what t_RB returns, but still need to check the Normal
highlighting, as it can overrule this. And the user can change
'background' intenrionally.
Trying to get this right automatically is bound to fail in mysterious
ways. I think it's better to rely on 'background' and the program to
set the colors if it wants to.
--
BODY: I'm not dead!
CART DRIVER: 'Ere. He says he's not dead.
LARGE MAN: Yes he is.
BODY: I'm not!
"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].
For more options, visit https://groups.google.com/d/optout.