diff options
Diffstat (limited to 'mbbsd/more.c')
-rw-r--r-- | mbbsd/more.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c index 33af9d74..04d2baff 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -1,7 +1,16 @@ /* $Id$ */ -#define REAL_MORE #include "bbs.h" +#ifdef USE_PIAIP_MORE + +/* use new pager */ +int more(char *fpath, int promptend) +{ + return pmore(fpath, promptend); +} + +#else + /* 把這兩個 size 調到一頁的範圍是不是能降低不必要的 IO ? */ #define MORE_BUFSIZE 4096 #define MORE_WINSIZE 4096 @@ -577,3 +586,4 @@ more(char *fpath, int promptend) outs(reset_color); return 0; } +#endif |