diff --git a/sys/winnt/nttty.c b/sys/winnt/nttty.c index a8bc29208..d2268236b 100644 --- a/sys/winnt/nttty.c +++ b/sys/winnt/nttty.c @@ -656,7 +656,7 @@ term_start_color(int color) { #ifdef TEXTCOLOR if (color >= 0 && color < CLR_MAX) { - foreground = (background != 0 && (color == CLR_GRAY | color == CLR_WHITE)) ? + foreground = (background != 0 && (color == CLR_GRAY || color == CLR_WHITE)) ? ttycolors[0] : ttycolors[color]; } #else