]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setterm: fix bright colors for --ulcolor/--hbcolor
authorJakub Wilk <jwilk@jwilk.net>
Thu, 7 Mar 2019 20:55:07 +0000 (21:55 +0100)
committerJakub Wilk <jwilk@jwilk.net>
Thu, 7 Mar 2019 21:11:46 +0000 (22:11 +0100)
The "bright" keyword was parsed, but it didn't actually affect the color
that was set.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
term-utils/setterm.c

index a8ccc386482bd469d453aa076acc8d696c51e496..4c29a462ed30b330cf7fe2aca5f2570c35bfcdae 100644 (file)
@@ -236,6 +236,9 @@ static int parse_ulhb_color(char **av, int *oi)
        if (bright && (color == BLACK || color == GREY))
                errx(EXIT_FAILURE, _("argument error: bright %s is not supported"), color_name);
 
+       if (bright)
+               color |= 8;
+
        return color;
 }