summaryrefslogtreecommitdiffstats
path: root/mbbsd/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/screen.c')
-rw-r--r--mbbsd/screen.c4
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;