diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-10-10 21:09:28 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-10-10 21:09:28 +0800 |
commit | a3fe6dfa154185b85338d1dff791d7646f2e75b1 (patch) | |
tree | 97b48e8e9e40dae195b2cceb93dbf688f239ef6f | |
parent | bfec28b24b15ecffe4c5d6cc2db44bccbdab2f16 (diff) | |
download | pttbbs-a3fe6dfa154185b85338d1dff791d7646f2e75b1.tar pttbbs-a3fe6dfa154185b85338d1dff791d7646f2e75b1.tar.gz pttbbs-a3fe6dfa154185b85338d1dff791d7646f2e75b1.tar.bz2 pttbbs-a3fe6dfa154185b85338d1dff791d7646f2e75b1.tar.lz pttbbs-a3fe6dfa154185b85338d1dff791d7646f2e75b1.tar.xz pttbbs-a3fe6dfa154185b85338d1dff791d7646f2e75b1.tar.zst pttbbs-a3fe6dfa154185b85338d1dff791d7646f2e75b1.zip |
* fix missing FULLUPDATE in M3
* added PMORE_NO_FORCE_CLRTOEOL, although I'm not sure if it really helps on some M3
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4926 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/pmore.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/pttbbs/mbbsd/pmore.c b/pttbbs/mbbsd/pmore.c index 5c1f3107..dbfe0e0c 100644 --- a/pttbbs/mbbsd/pmore.c +++ b/pttbbs/mbbsd/pmore.c @@ -247,6 +247,9 @@ #define RELATE_NEXT ']' #define READ_NEXT 'j' #define READ_PREV 'k' + #if !defined(FULLUPDATE) && defined(XO_HEAD) + # define FULLUPDATE XO_HEAD + #endif // environments and features #undef PMORE_USE_INTERNAL_HELP #undef PMORE_USE_REPLYKEY_HINTS @@ -259,6 +262,8 @@ #ifndef SHOW_USER_IN_TEXT # undef PMORE_EXPAND_ESC_STAR #endif // !SHOW_USER_IN_TEXT + // disable CLRTOEOL workaround: uncomment this if your system has problem in footer + // #define PMORE_NO_FORCE_CLRTOEOL // use m3 style separator [none]: comment these if you like Maple2.36/SOB/PTT style #undef MFDISP_SEP_DEFAULT #define MFDISP_SEP_DEFAULT MFDISP_SEP_NONE @@ -411,7 +416,12 @@ static int debug = 0; // and usually messed up when output ANSI quoted string. // - A workaround is suggested by kcwu: // https://opensvn.csie.org/traccgi/pttbbs/trac.cgi/changeset/519 -#define FORCE_CLRTOEOL() outs(ANSI_CLRTOEND) +// - If you have problem using this workaround, define PMORE_NO_FORCE_CLRTOEOL +#ifndef PMORE_NO_FORCE_CLRTOEOL +# define FORCE_CLRTOEOL() outs(ANSI_CLRTOEND) +#else +# define FORCE_CLRTOEOL() clrtoeol() +#endif /* Again, if you have a BBS system which optimized out* without recognizing * ANSI escapes, scrolling with ANSI text may result in melformed text (because @@ -1352,8 +1362,6 @@ mf_display() * we have to erase it here. */ pmore_clrtoeol(b_lines, 0); - // move(b_lines, 0); - // clrtoeol(); } if(scrll > MFDISP_PAGE) @@ -1383,8 +1391,6 @@ mf_display() // clear the line which will be scrolled // to bottom (status line position). pmore_clrtoeol(b_lines, 0); - // move(b_lines, 0); - // clrtoeol(); } else { @@ -2328,8 +2334,7 @@ pmore2( continue; } /* else, we have to clean up. */ - move(b_lines, 0); - clrtoeol(); + pmore_clrtoeol(b_lines, 0); } break; |