summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-30 08:31:00 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-30 08:31:00 +0800
commit2cc5019fa94206ed6e81e53bb24e38307aca9d84 (patch)
tree479e25f0874f82736a6281687d7ebd5ee4455094
parent0c51f8346a512ce96689f96511cae3ff96998881 (diff)
downloadpttbbs-2cc5019fa94206ed6e81e53bb24e38307aca9d84.tar
pttbbs-2cc5019fa94206ed6e81e53bb24e38307aca9d84.tar.gz
pttbbs-2cc5019fa94206ed6e81e53bb24e38307aca9d84.tar.bz2
pttbbs-2cc5019fa94206ed6e81e53bb24e38307aca9d84.tar.lz
pttbbs-2cc5019fa94206ed6e81e53bb24e38307aca9d84.tar.xz
pttbbs-2cc5019fa94206ed6e81e53bb24e38307aca9d84.tar.zst
pttbbs-2cc5019fa94206ed6e81e53bb24e38307aca9d84.zip
refine recycle bin ui
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5184 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/psb.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/pttbbs/mbbsd/psb.c b/pttbbs/mbbsd/psb.c
index e912e1bb..1c2ac5ab 100644
--- a/pttbbs/mbbsd/psb.c
+++ b/pttbbs/mbbsd/psb.c
@@ -388,8 +388,8 @@ pvrb_header(void *ctx) {
vs_hdr2barf(" 【" TIME_CAPSULE_NAME ": " RECYCLE_BIN_NAME "】 \t %s",
cx->subject);
move(1, 0);
- outs("請注意此處的檔案將不定期清除。");
- outs("\n");
+ outs("請注意此處的檔案將不定期清除。\n");
+ vbarf(ANSI_REVERSE " 編號 日 期 作 者 標 題\t");
return 0;
}
@@ -408,9 +408,12 @@ pvrb_renderer(int i, int curr, int total, int rows, void *ctx) {
fileheader_t *fh = &cx->records[total - i - 1];
// quick display, but lack of recommend counter...
- prints(" %s %06d %-5.5s %-12.12s %-*.*s" ANSI_RESET "\n",
- (i == curr) ? ANSI_COLOR(46;30) : "",
- i+1, fh->date, fh->owner, t_columns-33, t_columns-33, fh->title);
+ outs(" ");
+ if (i == curr)
+ // prints(ANSI_COLOR(1;40;3%d), i%8);
+ outs(ANSI_COLOR(1;40;31));
+ prints(" %06d %-5.5s %-12.12s %-*.*s" ANSI_RESET "\n",
+ i+1, fh->date, fh->owner, t_columns-31, t_columns-31, fh->title);
return 0;
}