summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/line.c
diff options
context:
space:
mode:
authorKarel Zak2014-05-05 16:32:14 +0200
committerKarel Zak2014-05-13 12:09:03 +0200
commit3eb482d027bf797ba0eba1a770498018c4ec1c1c (patch)
tree5a3f3205df44e547cc734639d78af732b19ddf1f /libsmartcols/src/line.c
parentlib/colors: support schemes customization (diff)
downloadkernel-qcow2-util-linux-3eb482d027bf797ba0eba1a770498018c4ec1c1c.tar.gz
kernel-qcow2-util-linux-3eb482d027bf797ba0eba1a770498018c4ec1c1c.tar.xz
kernel-qcow2-util-linux-3eb482d027bf797ba0eba1a770498018c4ec1c1c.zip
libsmartcols: use new colors API
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/line.c')
-rw-r--r--libsmartcols/src/line.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsmartcols/src/line.c b/libsmartcols/src/line.c
index 686a11945..32c8964ad 100644
--- a/libsmartcols/src/line.c
+++ b/libsmartcols/src/line.c
@@ -285,7 +285,7 @@ int scols_line_next_child(struct libscols_line *ln,
/**
* scols_line_set_color:
* @ln: a pointer to a struct libscols_line instance
- * @color: a color string
+ * @color: color name or ESC sequence
*
* Returns: 0, a negative value in case of an error.
*/
@@ -298,7 +298,7 @@ int scols_line_set_color(struct libscols_line *ln, const char *color)
return -EINVAL;
if (color) {
if (isalnum(*color)) {
- color = colorscheme_from_string(color);
+ color = color_sequence_from_colorname(color);
if (!color)
return -EINVAL;