Commit Graph

5 Commits (master)

Author SHA1 Message Date
Karel Zak 278f76ae88 lib/color-names: fix licence header
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 <>
2023-06-20 12:51:05 +02:00
Karel Zak 208480c4ba lib/colors: move colors canonicalization to lib/color-names.c
* 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 <>
2023-02-27 17:43:11 +01:00
Sebastian Rasmussen 9e93004171 misc: Fix various typos
Fix various typos in error messages, warnings, debug strings,
comments and names of static functions.

Signed-off-by: Sebastian Rasmussen <>
2016-05-31 23:40:21 +02:00
Karel Zak 4683cf3673 lib/color: add more ESC seq.
Signed-off-by: Karel Zak <>
2016-02-17 12:51:15 +01:00
Karel Zak 0bef6f759b libsmartcols: don't link with tinfo
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 <>
2015-07-24 12:57:46 +02:00