From 4f4e96367f746ca1bc01fa6da4674a44092230cc Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 5 Jan 2013 05:44:53 +0000 Subject: More visualize change of uf_lightbar git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5756 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/bbs.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 4cd021ab..22a1d0d2 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -780,7 +780,12 @@ readdoent(int num, fileheader_t * ent) } // print author - if(isonline) outs(ANSI_COLOR(1)); + if(isonline) { + if (HasUserFlag(UF_MENU_LIGHTBAR)) + outs(ANSI_COLOR(36)); + else + outs(ANSI_COLOR(1)); + } prints("%-13.12s", ent->owner); if(isonline) outs(ANSI_RESET); @@ -790,7 +795,10 @@ readdoent(int num, fileheader_t * ent) // print subject prefix ent->title[sizeof(ent->title)-1] = 0; if (strcmp(currtitle, title) == 0) { - prints(ANSI_COLOR(1;3%c), color); + if (HasUserFlag(UF_MENU_LIGHTBAR)) + prints(ANSI_COLOR(3%c), color); + else + prints(ANSI_COLOR(1;3%c), color); outs(mark); outc(' '); special = 1; @@ -799,7 +807,8 @@ readdoent(int num, fileheader_t * ent) outc(' '); if (special) { int len_announce = strlen(TN_ANNOUNCE); - outs(ANSI_COLOR(1)); + if (!HasUserFlag(UF_MENU_LIGHTBAR)) + outs(ANSI_COLOR(1)); outs(TN_ANNOUNCE); outs(ANSI_RESET); title += len_announce; -- cgit v1.2.3