If you use echo -e $(put sgr0)"text" - reset color attributes, it turns out the artifact (Btext
This commit is contained in:
parent
3dcaf97773
commit
f3afe3ce57
5
watch.c
5
watch.c
@ -289,6 +289,11 @@ static void process_ansi(FILE * fp)
|
||||
char *numstart, *endptr;
|
||||
|
||||
c = getc(fp);
|
||||
|
||||
if (c == '(') {
|
||||
c = getc(fp);
|
||||
c = getc(fp);
|
||||
}
|
||||
if (c != '[') {
|
||||
ungetc(c, fp);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user