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

This commit is contained in:
Alexandr Miasnikov authored and Craig Small committed 2020-12-22 15:41:44 +11:00
1 parent 3dcaf97773
commit f3afe3ce57
1 file changed
+5
+5
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;