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 2c7b575099
commit e7c3c0279f

View File

@ -290,6 +290,11 @@ static void process_ansi(FILE * fp)
int ansi_attribute; int ansi_attribute;
c = getc(fp); c = getc(fp);
if (c == '(') {
c = getc(fp);
c = getc(fp);
}
if (c != '[') { if (c != '[') {
ungetc(c, fp); ungetc(c, fp);
return; return;