smol/src
Brad Town 8d6b468cdc rcfile: support #rgb format for specifying colors in 256-color terminals
Most terminal emulators support a palette of 216 indexed colors:
the 6x6x6 color cube pioneered by Xterm.  But as an index gives
little indication about what kind of color it produces, allow the
user to specify the color with three hex digits instead, one for
the level of red, green, and blue each, in the format #rgb.

One hex digit allows for sixteen values, but as there are only
six levels available, only 0, 4, 8, a, c, and e are significant
-- other values get reduced to the nearest lower one.

This fulfills https://savannah.gnu.org/bugs/?56445.
Requested-by: Peter Liscovius, Erik Lundin, Owen Maresh, Dave Lemonby

Signed-off-by: Brad Town <brad@bradtown.com>
2021-11-23 11:56:06 +01:00
..
Makefile.am build: avoid a warning about duplicate symbol when building from tarball 2021-02-02 11:39:26 +01:00
browser.c browser: with --zero, do not use the bottom row for displaying filenames 2021-11-15 10:44:06 +01:00
chars.c copyright: update to the current year for significantly changed files 2021-09-24 11:01:41 +02:00
color.c copyright: update to the current year for significantly changed files 2021-09-24 11:01:41 +02:00
cut.c build: fix compilation with --enable-tiny --enable-wrapping 2021-11-10 09:07:23 +01:00
definitions.h new feature: option --zero for an interface without bars 2021-11-09 11:50:40 +01:00
files.c tweaks: elevate two messages, so they get shown with --mini or --zero 2021-11-20 16:46:18 +01:00
global.c tweaks: elide a variable that is confusing and has just one use case 2021-11-22 12:03:28 +01:00
help.c tweaks: elide a variable that is confusing and has just one use case 2021-11-22 12:03:28 +01:00
history.c history: process file faster by not filtering out hypothetical duplicates 2021-10-14 09:58:07 +02:00
move.c tweaks: elide two parameters, as they are now always the same 2021-10-27 16:30:23 +02:00
nano.c tweaks: on one-row terminals, suppress the message for two toggles 2021-11-23 10:16:54 +01:00
prompt.c tweaks: rename two functions, to get rid of the senseless suffix of one 2021-11-08 16:16:35 +01:00
prototypes.h tweaks: elide a variable that is confusing and has just one use case 2021-11-22 12:03:28 +01:00
rcfile.c rcfile: support #rgb format for specifying colors in 256-color terminals 2021-11-23 11:56:06 +01:00
search.c tweaks: replace two direct refreshes with two scheduled ones 2021-11-22 16:41:33 +01:00
text.c tweaks: adjust two values -- help lines need at least 6 rows to be shown 2021-11-21 16:52:13 +01:00
utils.c tweaks: change 'return ++var;' to 'return var + 1;' 2021-10-02 17:41:03 +02:00
winio.c tweaks: fold a special case into the general one 2021-11-23 10:10:23 +01:00