From fe6309732b3f4a4006e0f7dd3eb61009abb6b5da Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 6 Jul 2005 01:45:56 +0000 Subject: msg pretty print git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2901 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/common.h | 14 +++++++------- mbbsd/pmore.c | 5 +++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/include/common.h b/include/common.h index 3dc6eee5..dd9c6f10 100644 --- a/include/common.h +++ b/include/common.h @@ -47,13 +47,13 @@ #define MSG_MIME "礦物總沒性別了吧" #define MSG_PASSWD "請輸入您的密碼: " #define MSG_POSTER ANSI_COLOR(34;46) " 文章選讀 "\ - ANSI_COLOR(31;47) " (y)" ANSI_COLOR(30) "回信 "\ - ANSI_COLOR(31) "(=[]<>)" ANSI_COLOR(30) "相關主題 "\ - ANSI_COLOR(31) "(/?)" ANSI_COLOR(30) "搜尋標題 "\ - ANSI_COLOR(31) "(aA)" ANSI_COLOR(30) "搜尋作者 "\ - ANSI_COLOR(31) "(x)" ANSI_COLOR(30) "轉錄 "\ - ANSI_COLOR(31) "(V)" ANSI_COLOR(30) "投票 "\ - ANSI_RESET ANSI_CLRTOEND + ANSI_COLOR(31;47) " (y)" ANSI_COLOR(30) "回信"\ + ANSI_COLOR(31) "(X)" ANSI_COLOR(30) "推文"\ + ANSI_COLOR(31) "(x)" ANSI_COLOR(30) "轉錄 "\ + ANSI_COLOR(31) "(=[]<>)" ANSI_COLOR(30) "相關主題 "\ + ANSI_COLOR(31) "(/?aA)" ANSI_COLOR(30) "搜尋標題/作者 "\ + ANSI_COLOR(31) "(V)" ANSI_COLOR(30) "投票 "\ + ANSI_RESET ANSI_CLRTOEND #define MSG_SEPERATOR "\ ───────────────────────────────────────" diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index dc70f29e..03433603 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -1868,6 +1868,7 @@ pmore(char *fpath, int promptend) postfix1len = 12; // check msg below postfix2len = 10; + if(mf_viewedAll()) postfix1len = 15; if (prefixlen + postfix1len + postfix2len + 1 > t_columns) { @@ -1882,6 +1883,10 @@ pmore(char *fpath, int promptend) if(postfix1len > 0) outs( + mf_viewedAll() ? + ANSI_COLOR(0;31;47)" (y)" ANSI_COLOR(30) "回信" + ANSI_COLOR(31) "(X)" ANSI_COLOR(30) "推文 " + : ANSI_COLOR(0;31;47) "(h)" ANSI_COLOR(30) "按鍵說明 " ); -- cgit v1.2.3