diff --git a/NEWS b/NEWS index 173ec21e..c968987f 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ procps-ng-NEXT * top: provide proper multi-byte string handling issue #68 * watch: define HOST_NAME_MAX where not defined Debian #830734 * vmstat: Fix alignment for disk partition format issue #69 + * watch: Support ANSI 39,49 reset sequences issue #73 procps-ng-3.3.12 ---------------- diff --git a/watch.c b/watch.c index 017601df..bb0365f8 100644 --- a/watch.c +++ b/watch.c @@ -184,6 +184,12 @@ static int set_ansi_attribute(const int attrib) case 27: /* unset inversed */ attributes &= ~A_REVERSE; break; + case 39: + fg_col = 0; + break; + case 49: + bg_col = 0; + break; default: if (attrib >= 30 && attrib <= 37) { /* set foreground color */ fg_col = attrib - 30 + 1;