summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-11 01:54:47 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-11 01:54:47 +0800
commitdda5af373350d4b6649335e4ec8600a0baf2afe7 (patch)
tree6c09cb2515b2731fed79d66ceb5673279549523f /mbbsd/pmore.c
parente2b3b3e420075b9b0e61c01eac86b98810976c69 (diff)
downloadpttbbs-dda5af373350d4b6649335e4ec8600a0baf2afe7.tar
pttbbs-dda5af373350d4b6649335e4ec8600a0baf2afe7.tar.gz
pttbbs-dda5af373350d4b6649335e4ec8600a0baf2afe7.tar.bz2
pttbbs-dda5af373350d4b6649335e4ec8600a0baf2afe7.tar.lz
pttbbs-dda5af373350d4b6649335e4ec8600a0baf2afe7.tar.xz
pttbbs-dda5af373350d4b6649335e4ec8600a0baf2afe7.tar.zst
pttbbs-dda5af373350d4b6649335e4ec8600a0baf2afe7.zip
screen.c: edit_out should be managed by edit.c
pmore.c: eliminate nofmt (replaced by other modes) and 0xff header fix edit.c: broken dbcs support git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2823 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index b236d0e6..2412eb39 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -248,10 +248,10 @@ enum {
MFDISP_SEP_OLD = MFDISP_SEP_LINE | MFDISP_SEP_WRAP,
MFDISP_RAW_NA = 0x00,
- MFDISP_RAW_NOFMT,
MFDISP_RAW_NOANSI,
MFDISP_RAW_PLAIN,
MFDISP_RAW_MODES,
+ // MFDISP_RAW_NOFMT, // this is rarely used sinde we have ansi and plain
} MF_DISP_CONST;
@@ -683,9 +683,11 @@ pmore_str_strip_ansi(unsigned char *p) // warning: p is NULL terminated
memmove(pb, p, strlen(p)+1);
p = pb;
}
- else if (*p < ' ')
+ else if (*p < ' ' || *p == 0xff)
{
// control codes, ignore them.
+ // what is 0xff? old BBS does not handle telnet protocol
+ // so IACs were inserted.
memmove(p, p+1, strlen(p+1)+1);
}
else
@@ -2149,9 +2151,11 @@ pmore(char *fpath, int promptend)
case MFDISP_RAW_NA:
override_msg = ANSI_COLOR(34) "顯示預設格式化內容";
break;
+ /*
case MFDISP_RAW_NOFMT:
override_msg = ANSI_COLOR(31) "省略自動格式化";
break;
+ */
case MFDISP_RAW_NOANSI:
override_msg = ANSI_COLOR(33) "顯示原始 ANSI 控制碼";
break;