> Another thing: what does NR-16 and NR-8 mean? I can't find these terms
> on the internet. Every hit I get is in the context of Vim.They are explained a few lines below the block you cited.
Vim is not very good at detecting terminal features in general and it is pretty bad with colors so you should probably notch down your expectations regarding syntax highlighting.
Basically, if you stop at that table you would _think_ that 1 and DarkBlue should be interchangeable when &t_Co == 16, while they are very different when testing it in your terminal emulator.
There is a very short explanation a few paragraphs below the table:
> Note that for 16 color ansi style terminals (including xterms), the
> numbers in the NR-8 column is used. Here '*' means 'add 8' so that
> Blue is 12, DarkGray is 8 etc.
> numbers in the NR-8 column is used. Here '*' means 'add 8' so that
> Blue is 12, DarkGray is 8 etc.
That explanation is frustrating, though, because most terminal emulators in use nowadays fall into that broad "color ansi style terminals (including xterms)" category… which is still treated ("brushed off", even) as a special case.
This makes the table and most of the text below it unnecessarily confusing.
IMO, that specific part of the documentation should document the behavior experienced by most users rather than the antiquated heuristics that are used under the hood.
On Saturday, April 22, 2023 at 7:37:47 AM UTC+2 Enan Ajmain wrote:
On Fri, 21 Apr 2023 13:25:42 +0200
Christian Brabandt <cbl...@256bit.org> wrote:
> On Fr, 21 Apr 2023, Enan Ajmain wrote:
> > [...]
> > The color codes for NR-16 don't make sense to me. Take Yellow, for example.
> > Why is it numbered 14? 16-bit terminals use 11 for bright yellow [1]. Why is
> > it different inside Vim?
>
> It's not like Vim chose a different color, it's more like this documents
> "standard" behaviour back in the time.
>
> I believe this is just documenting the CGA standard. You can find it
> e.g. here: https://en.wikipedia.org/wiki/Color_Graphics_Adapter and
> check the Full CGA 16-color palette chart.
Thanks for the info. I haven't understood why CGA 16-color palette is
different than terminal 16-color palette, but I will try and find out.
Another thing: what does NR-16 and NR-8 mean? I can't find these terms
on the internet. Every hit I get is in the context of Vim.
P.S. In the thread-top email, I mistakenly wrote "16-bit terminals"
instead of "16-color terminals." I hope that didn't cause confusion.
--
Enan
--
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/74085fdf-143a-4065-8c1f-ceff8cc86765n%40googlegroups.com.
No comments:
Post a Comment