diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-11 23:46:27 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-11 23:46:27 +0800 |
commit | 484f322118b5e263d8749742268940486acbcd40 (patch) | |
tree | 39d06322cf0368a05b820b31971ca007e4a71426 /mbbsd/menu.c | |
parent | 483e783649b0cb8341803ced63c0f72acb4a35db (diff) | |
download | pttbbs-484f322118b5e263d8749742268940486acbcd40.tar pttbbs-484f322118b5e263d8749742268940486acbcd40.tar.gz pttbbs-484f322118b5e263d8749742268940486acbcd40.tar.bz2 pttbbs-484f322118b5e263d8749742268940486acbcd40.tar.lz pttbbs-484f322118b5e263d8749742268940486acbcd40.tar.xz pttbbs-484f322118b5e263d8749742268940486acbcd40.tar.zst pttbbs-484f322118b5e263d8749742268940486acbcd40.zip |
fix a long feast that make statusbar unterminated (ANSI_RESET).
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3221 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/menu.c')
-rw-r--r-- | mbbsd/menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 98ce0f4e..5b4c8494 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -141,7 +141,7 @@ show_status(void) ANSI_COLOR(34;46) "[%d/%d 星期%c%c %d:%02d]" ANSI_COLOR(1;33;45) "%-14s" ANSI_COLOR(30;47) " 目前坊裡有" ANSI_COLOR(31) - "%d" ANSI_COLOR(30) "人, 我是" ANSI_COLOR(31) "%-12s" + "%d" ANSI_COLOR(30) "人, 我是" ANSI_COLOR(31) "%s" ANSI_COLOR(30) , ptime->tm_mon + 1, ptime->tm_mday, myweek[i], myweek[i + 1], ptime->tm_hour, ptime->tm_min, currutmp->birth ? @@ -149,9 +149,10 @@ show_status(void) SHM->UTMPnumber, cuser.userid); outmsg(mystatus); i = strlen(mystatus) - (3*7+25); - sprintf(mystatus, "[扣機]" ANSI_COLOR(31) "%s " ANSI_RESET, + sprintf(mystatus, "[扣機]" ANSI_COLOR(31) "%s ", msgs[currutmp->pager]); outslr("", i, mystatus, strlen(msgs[currutmp->pager]) + 7); + outs(ANSI_RESET); } void |