diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-06 13:03:41 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-06 13:03:41 +0800 |
commit | 01cae7cc0030e26ce53c5743fc0dccc4aa7bf683 (patch) | |
tree | 387b16397b214d8ae40ac24672149f4a3b035418 /mbbsd/talk.c | |
parent | ff24026ce0222c9b0bc78ee075dd0ca9bb50c193 (diff) | |
download | pttbbs-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/talk.c')
-rw-r--r-- | mbbsd/talk.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 9bcac216..4b6712c6 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1902,7 +1902,7 @@ pickup(pickup_t * currpickup, int pickup_way, int *page, ( /* 含板友, 好友區最多只會有 (friendtotal + 板友) 個*/ (currutmp->brc_id && which < (friendtotal + 1 + - bcache[currutmp->brc_id-1].nuser)) || + getbcache(currutmp->brc_id)->nuser)) || /* 不含板友, 最多只會有 friendtotal個 */ (!currutmp->brc_id && which < friendtotal + 1) @@ -1914,7 +1914,7 @@ pickup(pickup_t * currpickup, int pickup_way, int *page, if (pickup_way == 0 && currutmp->brc_id != 0 #ifdef USE_COOLDOWN - && !(bcache[currutmp->brc_id-1].brdattr & BRD_COOLDOWN) + && !(getbcache(currutmp->brc_id)->brdattr & BRD_COOLDOWN) #endif ){ /* TODO 只需要 which+nPickups-*nfriend 個板友, 不一定要整個掃一遍 */ @@ -1997,10 +1997,17 @@ draw_pickup(int drawall, pickup_t * pickup, int pickup_way, show_pid ? " PID" : "心情 發呆" ); move(b_lines, 0); - outs(ANSI_COLOR(31;47) "(TAB/f)" ANSI_COLOR(30) "排序/好友 " ANSI_COLOR(31) "(t)" ANSI_COLOR(30) "聊天 " - ANSI_COLOR(31) "(a/d/o)" ANSI_COLOR(30) "交友 " ANSI_COLOR(31) "(q)" ANSI_COLOR(30) "查詢 " - ANSI_COLOR(31) "(w)" ANSI_COLOR(30) "水球 " ANSI_COLOR(31) "(m)" ANSI_COLOR(30) "寄信 " ANSI_COLOR(31) "(h)" - ANSI_COLOR(30) "線上輔助 " ANSI_RESET); + outslr( + ANSI_COLOR(34;46) " 休閒聊天 " + ANSI_COLOR(31;47) " (TAB/f)" ANSI_COLOR(30) "排序/好友 " + ANSI_COLOR(31) "(t)" ANSI_COLOR(30) "聊天 " + ANSI_COLOR(31) "(a/d/o)" ANSI_COLOR(30) "交友 " + ANSI_COLOR(31) "(q)" ANSI_COLOR(30) "查詢 " + ANSI_COLOR(31) "(w)" ANSI_COLOR(30) "水球 " + ANSI_COLOR(31) "(m)" ANSI_COLOR(30) "寄信 ", + 80-8, + ANSI_COLOR(31) "(h)" ANSI_COLOR(30) "說明 " ANSI_RESET, + 8); } move(1, 0); prints(" 排序:[%s] 上站人數:%-4d" ANSI_COLOR(1;32) "我的朋友:%-3d" @@ -2080,7 +2087,7 @@ draw_pickup(int drawall, pickup_t * pickup, int pickup_way, /* board or mode */ #if defined(SHOWBOARD) && defined(DEBUG) show_board ? (uentp->brc_id == 0 ? "" : - bcache[uentp->brc_id - 1].brdname) : + getbcache(uentp->brc_id)->brdname) : #endif /* %-13.13s */ modestring(uentp, 0), |