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: David Ramsey
Subject: Re: [Nano-devel] [PATCH] index/RGB colors and italic/reverse/underline attributes
Date: Sun, 18 Feb 2018 14:39:54 -0600

After some testing (plus manually adding ncurses-6.0 from
Slackware-current), the patchset seems to work well, both for colors
when $TERM is set properly and attributes (bold, italic, and underline).

However, I'm wondering if there's a way to improve user-friendliness a
bit.  Specifically, I've been using the following extended user color
scheme with these patches applied to nano (all the bold is so it stands
out more on a black text/white background environment; I prefer a white
text/black background environment, but just in case):

set functioncolor bold,#00a0f0
set keycolor bold,#a000f0
set numbercolor bold,#a000f0
set statuscolor bold,brightwhite,#5000a0
set selectedcolor bold,brightwhite,#0050a0
set titlecolor bold,brightwhite,#5000a0

And without the extended color scheme, I was using this (adapted to use
the new "bold" modifier in your patchset).  The color schemes are
deliberately similar, but the former is closer to what I'm actually
looking for:

set functioncolor bold,brightcyan
set keycolor bold,brightmagenta
set numbercolor bold,brightmagenta
set statuscolor bold,brightwhite,magenta
set selectedcolor bold,brightwhite,cyan
set titlecolor bold,brightwhite,magenta

Now, if $TERM is set wrongly, so that 256-color support isn't enabled,
the colors obviously won't work (specifically, the first color scheme
happens to map the extended colors to rather similar shades of blue).
Are there any eventual plans to specify non-extended fallback colors in
that case, or display a minor warning that some colors won't be
available?



reply via email to

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