diff options
Diffstat (limited to 'mbbsd/screen.c')
-rw-r--r-- | mbbsd/screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/screen.c b/mbbsd/screen.c index b4550869..7d512aca 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -357,7 +357,9 @@ outc(unsigned char c) slp->data[cur_col] = '\0'; slp->len = cur_col + 1; } - if (slp->data[cur_col] != c) { + + // flush ANSI escapes everytime. + if (c == ESC_CHR || slp->data[cur_col] != c) { slp->data[cur_col] = c; if (!(slp->mode & MODIFIED)) slp->smod = slp->emod = cur_col; |