summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-13 00:03:58 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-13 00:03:58 +0800
commitd8c0504a477b115f90498d5f7d58dd0e9f9e132c (patch)
tree17108daf18d9480a01178f2f4e2691646f657d43
parente102ca203c591a141380590632e13b49431ad2a8 (diff)
downloadpttbbs-d8c0504a477b115f90498d5f7d58dd0e9f9e132c.tar
pttbbs-d8c0504a477b115f90498d5f7d58dd0e9f9e132c.tar.gz
pttbbs-d8c0504a477b115f90498d5f7d58dd0e9f9e132c.tar.bz2
pttbbs-d8c0504a477b115f90498d5f7d58dd0e9f9e132c.tar.lz
pttbbs-d8c0504a477b115f90498d5f7d58dd0e9f9e132c.tar.xz
pttbbs-d8c0504a477b115f90498d5f7d58dd0e9f9e132c.tar.zst
pttbbs-d8c0504a477b115f90498d5f7d58dd0e9f9e132c.zip
change the display way of push bottom
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2132 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 17a35bc1..47a25dac 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -170,15 +170,11 @@ readdoent(int num, fileheader_t * ent)
char *mark, *title, color, special = 0, isonline = 0, recom[5];
userinfo_t *uentp;
type = brc_unread(ent->filename, brc_num, brc_list) ? '+' : ' ';
-
if ((currmode & MODE_BOARD) && (ent->filemode & FILE_DIGEST))
type = (type == ' ') ? '*' : '#';
else if (currmode & MODE_BOARD || HAS_PERM(PERM_LOGINOK)) {
- if (ent->filemode & FILE_BOTTOM)
- type = '_' ;
- else if (ent->filemode & FILE_MARKED)
+ if (ent->filemode & FILE_MARKED)
type = (type == ' ') ? 'm' : 'M';
-
else if (TagNum && !Tagger(atoi(ent->filename + 2), 0, TAG_NIN))
type = 'D';
@@ -222,13 +218,18 @@ readdoent(int num, fileheader_t * ent)
sprintf(recom,"0mX%d",-ent->recommend);
else strcpy(recom,"0m ");
+ if (ent->filemode & FILE_BOTTOM)
+ outs(" \033[1;31m¸m©³");
+ else
+ prints("%6d", num);
+
prints(
#ifdef COLORDATE
- "%6d %c\033[1;3%4.4s\033[%dm%-6s\033[m\033[%dm%-13.12s",
+ " %c\033[1;3%4.4s\033[%dm%-6s\033[m\033[%dm%-13.12s",
#else
- "%6d %c\033[1;3%4.4s\033[m%-6s\033[%dm%-13.12s",
+ " %c\033[1;3%4.4s\033[m%-6s\033[%dm%-13.12s",
#endif
- num, type, recom,
+ type, recom,
#ifdef COLORDATE
(ent->date[3] + ent->date[4]) % 7 + 31,
#endif