summaryrefslogtreecommitdiffstats
path: root/mbbsd/screen.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-16 02:59:12 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-16 02:59:12 +0800
commitbede7393f59b9d71afeef9f139e3e8877f54d10f (patch)
tree34417ecf6a7ddf38db64171f1bc3d4014736b4ce /mbbsd/screen.c
parent7b0a4e6fca7e47c4c25ff961b21f54dac5defd79 (diff)
downloadpttbbs-bede7393f59b9d71afeef9f139e3e8877f54d10f.tar
pttbbs-bede7393f59b9d71afeef9f139e3e8877f54d10f.tar.gz
pttbbs-bede7393f59b9d71afeef9f139e3e8877f54d10f.tar.bz2
pttbbs-bede7393f59b9d71afeef9f139e3e8877f54d10f.tar.lz
pttbbs-bede7393f59b9d71afeef9f139e3e8877f54d10f.tar.xz
pttbbs-bede7393f59b9d71afeef9f139e3e8877f54d10f.tar.zst
pttbbs-bede7393f59b9d71afeef9f139e3e8877f54d10f.zip
- general message fix
- screen: force dirty of ANSI escapes - bbs: isolate the process of making 'modification' to .DIR with recommends and edit_post. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3685 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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;