summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/line.c
diff options
context:
space:
mode:
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;