summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-10-22 09:41:52 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-10-22 09:41:52 +0800
commit9cf217abfa24c2064e8b2283b9bf133d836c5c03 (patch)
tree0c3da715ddd3030edf25b7efac8651be276d30f8
parent5dea5857fe882db2c226f76b1a71c2754a2ee803 (diff)
downloadpttbbs-9cf217abfa24c2064e8b2283b9bf133d836c5c03.tar
pttbbs-9cf217abfa24c2064e8b2283b9bf133d836c5c03.tar.gz
pttbbs-9cf217abfa24c2064e8b2283b9bf133d836c5c03.tar.bz2
pttbbs-9cf217abfa24c2064e8b2283b9bf133d836c5c03.tar.lz
pttbbs-9cf217abfa24c2064e8b2283b9bf133d836c5c03.tar.xz
pttbbs-9cf217abfa24c2064e8b2283b9bf133d836c5c03.tar.zst
pttbbs-9cf217abfa24c2064e8b2283b9bf133d836c5c03.zip
* prevent incomplete ANSI escapes in user article making damage to internal output attributes
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4948 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/pmore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/pmore.c b/pttbbs/mbbsd/pmore.c
index ffdacf0e..3beda8b6 100644
--- a/pttbbs/mbbsd/pmore.c
+++ b/pttbbs/mbbsd/pmore.c
@@ -1479,7 +1479,7 @@ mf_display()
/* case 1, header separator line */
if (bpref.separator & MFDISP_SEP_LINE)
{
- outs(ANSI_COLOR(36));
+ outs(ANSI_COLOR(0;36));
for(col = 0; col < headerw; col+=2)
{
// prints("%02d", col);
@@ -1567,13 +1567,13 @@ mf_display()
(*mf.dispe == ':' || *mf.dispe == '>') &&
*(mf.dispe+1) == ' ')
{
- outs(ANSI_COLOR(36));
+ outs(ANSI_COLOR(0;36));
flResetColor = 1;
} else if (dist > 2 &&
(!strncmp((char*)mf.dispe, "กฐ", 2) ||
!strncmp((char*)mf.dispe, "==>", 3)))
{
- outs(ANSI_COLOR(32));
+ outs(ANSI_COLOR(0;32));
flResetColor = 1;
}
}