The header file and code uses a different license. Let's use (public
domain) license from code also for the header file.
Signed-off-by: Karel Zak <kzak@redhat.com>
* let's make simplified sequences (e.g. "35;4") used without
lib/colors.c (without color schemes)
* add function to detect already usable esc sequence
* support this new feature in "test_colors --color <name|seq|...>"
./test_colors --color "red"
./test_colors --color "35;5"
Signed-off-by: Karel Zak <kzak@redhat.com>
Fix various typos in error messages, warnings, debug strings,
comments and names of static functions.
Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
Let's move color names to sequence translation to separate file to
make it usable without all the stuff in lib/colors.c.
Signed-off-by: Karel Zak <kzak@redhat.com>