]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/colors: support schemes customization
authorKarel Zak <kzak@redhat.com>
Mon, 5 May 2014 14:22:43 +0000 (16:22 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 13 May 2014 10:09:03 +0000 (12:09 +0200)
commit7a4704d82644adb1fa3c5ec7c1eba162ee860d08
treea1704770ddcc5c8f0132eed4f7999ad85e6520f3
parente66a662726c6254e9529dd55f88c1e95d6f762a5
lib/colors: support schemes customization

 * parse terminal-colors.d/*.scheme files, expected format is

    <name> <color-sequence>

 * supported color sequences:

     - color name (e.g. "red")
     - dir_colors compatible xx;yy (e.g. 01;31) where the sequence may
       contains control chars like \e \a  ..etc.

 * scheme is parsed on demand

Signed-off-by: Karel Zak <kzak@redhat.com>
include/colors.h
lib/colors.c