nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] bright colors without bold


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] bright colors without bold
Date: Fri, 9 Feb 2018 20:13:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Op 09-02-18 om 12:55 schreef Brand Huntsman:
On Fri, 9 Feb 2018 11:31:33 +0100 Benno Schulenberg <address@hidden>
wrote:
Op 08-02-18 om 03:04 schreef Brand Huntsman:
+                * bolding it.  It bolds on terminals with only 8 colors. */

The second sentence isn't true.

It is true, parse_color_names() sets A_BOLD if fg_bright and nr_term_colors ==
8.

It sets A_BOLD, yes, but on an 8-color terminal A_BOLD just brightens
the color, it doesn't change the character to use boldface.  At least,
as far as I can see on my Linux console, where A_BOLD only brightens
white, not the other colors.

Amended patches are coming up. +           if (nr_term_colors == 8) +
*attributes |= A_BOLD; +           else +               *fg += 8;

That should be the way I had it so nr_term_colors==0 doesn't add 8 and make
the text invisible.

Okay.  So <= 8.

Benno



reply via email to

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