summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 01:49:48 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 01:49:48 +0800
commitb2bd875e479043e5b858b8912c985c6aacbf6661 (patch)
tree685a9eea045451214a54a879088bdc5b48ab1755 /mbbsd/bbs.c
parent64d82081dd1094c9d645a8702b9199f54dd0a52d (diff)
downloadpttbbs-b2bd875e479043e5b858b8912c985c6aacbf6661.tar
pttbbs-b2bd875e479043e5b858b8912c985c6aacbf6661.tar.gz
pttbbs-b2bd875e479043e5b858b8912c985c6aacbf6661.tar.bz2
pttbbs-b2bd875e479043e5b858b8912c985c6aacbf6661.tar.lz
pttbbs-b2bd875e479043e5b858b8912c985c6aacbf6661.tar.xz
pttbbs-b2bd875e479043e5b858b8912c985c6aacbf6661.tar.zst
pttbbs-b2bd875e479043e5b858b8912c985c6aacbf6661.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@233 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 7c757496..069751df 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.23 2002/05/25 16:56:33 ptt Exp $ */
+/* $Id: bbs.c,v 1.24 2002/05/25 17:49:48 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -165,7 +165,8 @@ extern int Tagger();
static void readdoent(int num, fileheader_t *ent) {
int type;
- char *mark, *title, color;
+ char *mark, *title, color,
+ special=0;
if(ent->recommend>9 || ent->recommend <0 ) ent->recommend=0; //Ptt:¼È®É
type = brc_unread(ent->filename,brc_num,brc_list) ? '+' : ' ';
@@ -191,14 +192,20 @@ static void readdoent(int num, fileheader_t *ent) {
if(title[47])
strcpy(title + 44, " ¡K"); /* §â¦h¾lªº string ¬å±¼ */
+ if(title[0]=='[' && title[3]==']' ) special=1;
+
if(strncmp(currtitle, title, TTLEN))
- prints("%6d %c\033[1;32m%c\033[m%-6s%-13.12s%s %s\n", num, type,
+ prints("%6d %c\033[1;32m%c\033[m%-6s%-13.12s%s "
+ "\033[1m%.*s\033[m%s\n", num, type,
ent->recommend?ent->recommend+'0':' ',
- ent->date, ent->owner, mark, title);
+ ent->date, ent->owner, mark,
+ special?6:0, title, special?title+6:title);
else
- prints("%6d %c\033[1;32m%c\033[m%-6s%-13.12s\033[1;3%cm%s %s\033[m\n", num, type,
+ prints("%6d %c\033[1;32m%c\033[m%-6s%-13.12s\033[1;3%cm%s "
+ "%s\033[m\n", num, type,
ent->recommend?ent->recommend+'0':' ',
- ent->date, ent->owner, color, mark, title);
+ ent->date, ent->owner, color, mark,
+ title);
}
extern char currfile[];