nano-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 4/4] rcfile: allow bolding also the first eight (non-intense)


From: Benno Schulenberg
Subject: Re: [PATCH 4/4] rcfile: allow bolding also the first eight (non-intense) colors
Date: Fri, 12 Jun 2020 11:19:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

Op 12-06-2020 om 02:39 schreef Brand Huntsman:
> On 20:02 Thu 11-Jun-2020, Benno Schulenberg wrote:
>> +/* Replacement colors from the palette to allow bolding the first eight. */
>> +short closest[COLOR_WHITE + 1] = { 16, 88, 28, 100, 18, 90, 30, 145 };
> 
> You chose colors that are darker than the default linux console colors,
> making them extremely hard to read.

According to https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit ,
standard red is #800000, standard green #008000, and standard blue
#000080.  The indexes I chose are slightly lighter than that, each
using 87 instead of 80.

But indeed, although bold cyan and bold green looked fairly close
to plain cyan and plain green, bold red and bold blue were obviously
darker than the plain ones.  And bold yellow was more like green or
olive.  (Checked on an xterm.)  The attached patch moves the indexes
closer to the standard colors on an xterm.

As far as I know, the Linux console can do just eight colors, and
A_BOLD results in brighter versions of those eight.  Indexes beyond
those eight result in the plain foreground color on my machines.
Is that different for you?

Benno

Attachment: better-indices.patch
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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