Saturday, May 11, 2019

Re: A question about highlight-cterm

> I am a bit puzzled by the note in `:help highlight-cterm`:
>
> Note: Many terminals (e.g., DOS console) can't mix these attributes with
> coloring. Use only one of "cterm=" OR "ctermfg=" OR "ctermbg=".
>
> Virtually all colorschemes I have seen use ctermfg AND ctermbg AND cterm.
>
> The note above is also at odds with `:help cterm-colors`, which states:
>
> If you want to set the bold attribute in a different way, put a "cterm="
> argument AFTER the "ctermfg=" or "ctermbg=" argument.
>
> Which implies that cterm and ctermfg/ctermbg can coexist.
>
> Perhaps, the above note is a thing of the past and should be removed?

It is not of the past, the basic ANSI terminal still only has 8 or 16
colors. But most users would be using 256 colors whenever they can.
Let's rephrase this:

Note: Some terminals (e.g., DOS console) can't mix these attributes
with coloring. To be portable, use only one of "cterm=" OR "ctermfg="
OR "ctermbg=".

--
This message contains 78% recycled characters.

/// Bram Moolenaar -- Bram@Moolenaar.net -- 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_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/201905111110.x4BBA4Kk009445%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

No comments: