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:
parent
c1b4cf105d
commit
3d886e86f6
|
@ -236,6 +236,9 @@ static int parse_ulhb_color(char **av, int *oi)
|
||||||
if (bright && (color == BLACK || color == GREY))
|
if (bright && (color == BLACK || color == GREY))
|
||||||
errx(EXIT_FAILURE, _("argument error: bright %s is not supported"), color_name);
|
errx(EXIT_FAILURE, _("argument error: bright %s is not supported"), color_name);
|
||||||
|
|
||||||
|
if (bright)
|
||||||
|
color |= 8;
|
||||||
|
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue