summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-06 13:03:41 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-06 13:03:41 +0800
commit01cae7cc0030e26ce53c5743fc0dccc4aa7bf683 (patch)
tree387b16397b214d8ae40ac24672149f4a3b035418 /mbbsd/board.c
parentff24026ce0222c9b0bc78ee075dd0ca9bb50c193 (diff)
downloadpttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.gz
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.bz2
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.lz
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.xz
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.zst
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.zip
Large Terminal Rules
New api: *lr family calls are used to pad and fir terminal width. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2996 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index d7be9eb6..c5f34290 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -57,7 +57,7 @@ inline int getbid(const boardheader_t *fh)
inline boardheader_t *getparent(const boardheader_t *fh)
{
if(fh->parent>0)
- return &bcache[fh->parent-1];
+ return getbcache(fh->parent);
else
return NULL;
}
@@ -164,7 +164,7 @@ load_uidofgid(const int gid, const int type)
currbptr = parent = &bcache[gid - 1];
for (n = 0; n < numboards; ++n) {
bid = SHM->bsorted[type][n]+1;
- if( bid<=0 || !(bptr = &bcache[bid-1])
+ if( bid<=0 || !(bptr = getbcache(bid))
|| bptr->brdname[0] == '\0' )
continue;
if (bptr->gid == gid) {
@@ -491,12 +491,13 @@ show_brdlist(int head, int clsflag, int newflag)
"——" ANSI_RESET " ◤ —+" ANSI_RESET);
} else if (clsflag) {
showtitle("看板列表", BBSName);
- prints("[←]主選單 [→]閱\讀 [↑↓]選擇 [S]排序 [/]搜尋 "
- "[m]加入或移出我的最愛 [h]求助\n"
- ANSI_COLOR(7) "%-20s 類別 轉信%-30s"
- "人氣 板 主 " ANSI_RESET,
- newflag ? "總數 未讀 看 板" : " 編號 看 板",
- " 中 文 敘 述");
+ outs("[←]主選單 [→]閱\讀 [↑↓]選擇 [S]排序 [/]搜尋 [m]加入或移出我的最愛 [h]求助\n");
+ outs(ANSI_COLOR(7));
+ outs( newflag ?
+ "總數 未讀 看 板 " :
+ " 編號 看 板 ");
+ outs( " 類別 轉信 中 文 敘 述 人氣 板 主");
+ outslr("", 72, ANSI_RESET, 0);
move(b_lines, 0);
brdlist_foot();
}