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 <jwilk@jwilk.net>
This commit is contained in:
Jakub Wilk 2019-03-07 21:55:07 +01:00
parent c1b4cf105d
commit 3d886e86f6
1 changed files with 3 additions and 0 deletions

View 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;
}