If you use echo -e $(put sgr0)"text" - reset color attributes, it turns out the artifact (Btext

This commit is contained in:
Alexandr Miasnikov 2018-04-27 13:27:17 +00:00 committed by Craig Small
parent 3dcaf97773
commit f3afe3ce57

View File

@ -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;