nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] index/RGB colors and italic/reverse/underline a


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] index/RGB colors and italic/reverse/underline attributes
Date: Tue, 20 Feb 2018 21:03:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Op 20-02-18 om 17:54 schreef David Ramsey:
> Benno Schulenberg:
>> I hate the way things would look then: having to specify four colors
>> when all you want is to make a nice color scheme for the terminal you
>> are actually using.  So, "requiring", certainly not.  And it's not
>> needed to get the extra colors working -- just like the italic and
>> underline and what have you: leave it out, not essential, unnecessary.
> 
> What about the simpler version of specifying two colors: the first being
> your index/RGB/whatever extended color, and the second being a named
> color?

??  I don't understand what you mean.

> I've been able to get 256-color support by default in everything other
> than the VTE-based terminals (XFCE4-Terminal 4.12

My Xfce4-terminal is version 0.8.6.  (Xfce4-panel and -session are 4.12.)
And TERM is set properly:

$ env | grep TERM
COLORTERM=truecolor
TERM=xterm-256color

> So, in light of all this, in order to get similar enough colors working
> regardless, I need some way to set fallback colors.

If the extra colors cause so many problems, let's just forget about them.
(Needing two hundred lines of code just to map RGB values to color indexes
is way too much.)

> But, without having some kind of fallback, if the
> clamped colors aren't quite right, I end up needing two color schemes:
> 256-color and 16-color,

You need two color schemes anyway, you just want to be able to specify
both at the same time.  You call it a fallback, but it is a secondary
color scheme.  I hate it.  Let's forget about extra colors.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]