diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-04 22:51:50 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-04 22:51:50 +0800 |
commit | f3b056046dab4ac2fc5d5a7d66226046fe3cee3b (patch) | |
tree | 93da331f4eb4c74ed65513047b46f51a7ffcea76 | |
parent | a2ca5df8a18714ce56c0d56fb12cbc47533311f2 (diff) | |
download | pttbbs-f3b056046dab4ac2fc5d5a7d66226046fe3cee3b.tar pttbbs-f3b056046dab4ac2fc5d5a7d66226046fe3cee3b.tar.gz pttbbs-f3b056046dab4ac2fc5d5a7d66226046fe3cee3b.tar.bz2 pttbbs-f3b056046dab4ac2fc5d5a7d66226046fe3cee3b.tar.lz pttbbs-f3b056046dab4ac2fc5d5a7d66226046fe3cee3b.tar.xz pttbbs-f3b056046dab4ac2fc5d5a7d66226046fe3cee3b.tar.zst pttbbs-f3b056046dab4ac2fc5d5a7d66226046fe3cee3b.zip |
pmore: fixed ansi display with long lines
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2761 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/pmore.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index f9e727d0..16c89f7e 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -873,7 +873,12 @@ mf_disp() outc(*mf.dispe); } else { if(*mf.dispe == ESC_CHR) + { inAnsi = 1; + /* we can't output now because maybe + * ptt_prints wants to do something. + */ + } else if(srlen < 0 && sr.search_str[0] && // support search //tolower(sr.search_str[0]) == tolower(*mf.dispe) && mf.end - mf.dispe > sr.len && @@ -914,7 +919,11 @@ mf_disp() inAnsi = 0; } else #endif + if(inAnsi) { + // outc(*mf.dispe); + outc(ESC_CHR); + } else { int canOutput = 0; /* if col > maxcol, * because we have the space for @@ -976,7 +985,8 @@ mf_disp() break; } - if(!inAnsi) + // we MUST be !inAnsi in this block. + //if(!inAnsi) { col++; if (srlen == 0) |