From: Jakub Wilk Date: Thu, 7 Mar 2019 20:55:07 +0000 (+0100) Subject: setterm: fix bright colors for --ulcolor/--hbcolor X-Git-Tag: v2.34-rc1~65^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d886e86f62d190a65023ab1be921ac592225018;p=thirdparty%2Futil-linux.git setterm: fix bright colors for --ulcolor/--hbcolor The "bright" keyword was parsed, but it didn't actually affect the color that was set. Signed-off-by: Jakub Wilk --- diff --git a/term-utils/setterm.c b/term-utils/setterm.c index a8ccc38648..4c29a462ed 100644 --- a/term-utils/setterm.c +++ b/term-utils/setterm.c @@ -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; }