diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-04 19:18:20 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-04 19:18:20 +0800 |
commit | cac7c3c652830457b696298d9edd7e5c56111f24 (patch) | |
tree | 00be5121aef21bf9319cc8dfe39380c68982dde9 | |
parent | 3928b7003a14e2ea05be30d64439b302d2b1f0c3 (diff) | |
download | pttbbs-cac7c3c652830457b696298d9edd7e5c56111f24.tar pttbbs-cac7c3c652830457b696298d9edd7e5c56111f24.tar.gz pttbbs-cac7c3c652830457b696298d9edd7e5c56111f24.tar.bz2 pttbbs-cac7c3c652830457b696298d9edd7e5c56111f24.tar.lz pttbbs-cac7c3c652830457b696298d9edd7e5c56111f24.tar.xz pttbbs-cac7c3c652830457b696298d9edd7e5c56111f24.tar.zst pttbbs-cac7c3c652830457b696298d9edd7e5c56111f24.zip |
pmore: post fix to make it more like old pager.
for promptend behavior.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2758 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/pmore.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 1ddaaae7..c856fbd4 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -68,6 +68,7 @@ //#define PMORE_TRADITIONAL_SEPERATOR // display seperator with extra space //#define PMORE_TRADITIONAL_STATUSBAR // if you really love that +#define PMORE_TRADITIONAL_PROMPTEND // when prompt=NA, show only page 1 // -------------------------------------------------------------- </FEATURES> //#define DEBUG @@ -1069,9 +1070,13 @@ pmore(char *fpath, int promptend) { mf_disp(); +#ifdef PMORE_TRADITIONAL_PROMPTEND + if(promptend == NA) // && mf_viewedAll()) + break; +#else if(promptend == NA && mf_viewedAll()) break; - +#endif move(b_lines, 0); // clrtoeol(); // this shall be done in mf_disp to speed up. |