From bede7393f59b9d71afeef9f139e3e8877f54d10f Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 15 Dec 2007 18:59:12 +0000 Subject: - 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 --- mbbsd/screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mbbsd/screen.c') 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; -- cgit v1.2.3