Break out of that particular escape on linefeed

This commit is contained in:
Kevin Lange 2014-05-30 21:29:29 -07:00
parent e157147550
commit 7e67bf0727

View File

@ -460,6 +460,13 @@ static void _ansi_put(term_state_t * s, char c) {
return;
} else {
/* Still escaped */
if (c == '\n' || s->buflen > 256) {
ansi_dump_buffer(s);
callbacks->writer(c);
s->buflen = 0;
s->escape = 0;
return;
}
ansi_buf_add(s, c);
}
break;