diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-07 00:29:42 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-07 00:29:42 +0800 |
commit | 86df7f565bf829f31b18525c7f2579e4d00f99ee (patch) | |
tree | d95146df16475bc6dc1456ebf8080e943613bc5a | |
parent | 8692bff0b57e242f7f6f39c40b8d101d9f51a816 (diff) | |
download | pttbbs-86df7f565bf829f31b18525c7f2579e4d00f99ee.tar pttbbs-86df7f565bf829f31b18525c7f2579e4d00f99ee.tar.gz pttbbs-86df7f565bf829f31b18525c7f2579e4d00f99ee.tar.bz2 pttbbs-86df7f565bf829f31b18525c7f2579e4d00f99ee.tar.lz pttbbs-86df7f565bf829f31b18525c7f2579e4d00f99ee.tar.xz pttbbs-86df7f565bf829f31b18525c7f2579e4d00f99ee.tar.zst pttbbs-86df7f565bf829f31b18525c7f2579e4d00f99ee.zip |
pretty format.
changes in menu.c is suggested by CatMan@ptt2, thanks
(not really fully tested but it seems ok)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2912 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/menu.c | 6 | ||||
-rw-r--r-- | mbbsd/read.c | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index f9db6ff4..136fe37d 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -28,19 +28,19 @@ showtitle(const char *title, const char *mid) ANSI_COLOR(41;5) " current pid: %6d " TITLE_COLOR, getpid()); mid = numreg; - spc = 22; + spc = 23; } #else else if (currutmp->mailalert) { mid = ANSI_COLOR(41;5) " 郵差來按鈴囉 " TITLE_COLOR; - spc = 22; + spc = 18; } else if ( HasUserPerm(PERM_ACCTREG) && (nreg = dashs((char *)fn_register) / 163) > 100 ) { snprintf(numreg, sizeof(numreg), ANSI_COLOR(41;5) " 有 %03d 未審核 " TITLE_COLOR, nreg); mid = numreg; - spc = 22; + spc = 19; } #endif spc = 66 - strlen(title) - spc - strlen(currboard); diff --git a/mbbsd/read.c b/mbbsd/read.c index bee3f41a..62d9acdb 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -422,14 +422,14 @@ select_read(const keeploc_t * locmem, int sr_mode) if(sr_mode & RS_AUTHOR) { if(!getdata(b_lines, 0, - currmode & MODE_SELECT ? "增加條件 作者:":"搜尋作者:", + currmode & MODE_SELECT ? "增加條件 作者: ":"搜尋作者: ", keyword, IDLEN+1, LCECHO)) return READ_REDRAW; } else if(sr_mode & RS_KEYWORD) { if(!getdata(b_lines, 0, - currmode & MODE_SELECT ? "增加條件 標題:":"搜尋標題:", + currmode & MODE_SELECT ? "增加條件 標題: ":"搜尋標題: ", keyword, TTLEN, DOECHO)) return READ_REDRAW; #ifdef KEYWORD_LOG @@ -440,7 +440,7 @@ select_read(const keeploc_t * locmem, int sr_mode) else if(sr_mode & RS_KEYWORD_EXCLUDE) { if(!(currmode & MODE_SELECT) || - !getdata(b_lines, 0, "增加條件 排除標題:", + !getdata(b_lines, 0, "增加條件 排除標題: ", keyword, TTLEN, DOECHO)) return READ_REDRAW; } @@ -448,7 +448,8 @@ select_read(const keeploc_t * locmem, int sr_mode) { if(currstat != RMAIL && ( !getdata(b_lines, 0, - (currmode & MODE_SELECT) ? "增加條件 推文數:":"最低推數:", + (currmode & MODE_SELECT) ? + "增加條件 推文數: ":"最低推文數: ", keyword, 7, LCECHO) || (n_recommend = atoi(keyword)) <= 0 )) return READ_REDRAW; } |