From 52f112d255da4c4267752e390664eceafc288a41 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Sat, 21 Sep 2019 16:03:28 +1000 Subject: [PATCH] watch: fix unsetting of COLOR flag watch used to check if COLOR was required, check if color was possible then.. set the flag again. It should have been cleared after failing to get colors out of ncurses. References: procps-ng/procps#143 --- watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch.c b/watch.c index a0b05675..a945fd81 100644 --- a/watch.c +++ b/watch.c @@ -809,7 +809,7 @@ int main(int argc, char *argv[]) use_default_colors(); init_ansi_colors(); } else { - flags |= WATCH_COLOR; + flags &= ~WATCH_COLOR; } } nonl(); -- 2.40.0