Monday, September 25, 2017

Re: libvterm color palette

Grant Taylor wrote:

> On 09/24/2017 11:46 AM, Bram Moolenaar wrote:
> > I suppose the xterm source code must contain the "source of truth".
> > I was assuming Leonerd took it from there, but perhaps he didn't.
> > Should be easy to fix, but I wonder if Paul will want to take it over.
>
> The last time I went digging for color information in XTerm, I was ...
> disappointed. It seems as if XTerm's colors are somewhat fluid and were
> never truly set in stone. (At least that's my understanding.)
>
> Perhaps my (limited) research was based on distro's (modified?) versions
> of XTerm. - Though I don't recall hard answers from the authors page
> either.
>
> I ended up installing Linux in a VM, and matching the colors from
> console (not X) output. - I then set them in my .Xdefaults file.
>
> Note: These colors differ from the colors that Microsoft used for cmd.exe.

The xterm file 256colores.h appears to contain the table.
The color cube numbers are 0X00, 0X5F, 0X87, 0XAF, 0XD7 and 0XFF.
While libvterm uses 0x00, 0x33, 0x66, 0x99, 0xCC and 0xFF.
Looks like a difference between a linear and a log scale.

The list of 24 grey colors is also different. libvterm goes from 0x00
to 0XFF, xterm from 0x08 to 0xEE.

--
hundred-and-one symptoms of being an internet addict:
194. Your business cards contain your e-mail and home page address.

/// 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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment