From a0f8ef1e2e04905908478088fc376435b770417c Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 8 Jun 2005 02:46:24 +0000 Subject: New style to specify ANSI escape commands. First introduced by pmore, but this hard work (to transform all files to new style) is made by Rong-en Fan (rafan). Thanks! git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/common.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h index a17e7a15..5a29ca70 100644 --- a/include/common.h +++ b/include/common.h @@ -33,7 +33,7 @@ #define FN_BOARDHELP "etc/board.help" #define MSG_DEL_CANCEL "取消刪除" -#define MSG_SELECT_BOARD "\033[7m【 選擇看板 】\033[m\n" \ +#define MSG_SELECT_BOARD ANSI_COLOR(7) "【 選擇看板 】" ANSI_RESET "\n" \ "請輸入看板名稱(按空白鍵自動搜尋):" #define MSG_CLOAKED "哈哈!我隱形了!看不到勒... :P" #define MSG_UNCLOAK "我要重現江湖了...." @@ -46,13 +46,13 @@ #define MSG_PLANT "植物也有性別喔.." #define MSG_MIME "礦物總沒性別了吧" #define MSG_PASSWD "請輸入您的密碼: " -#define MSG_POSTER "\033[34;46m 文章選讀 "\ - "\033[31;47m (y)\033[30m回信 "\ - "\033[31m(=[]<>)\033[30m相關主題 "\ - "\033[31m(/?)\033[30m搜尋標題 "\ - "\033[31m(aA)\033[30m搜尋作者 "\ - "\033[31m(x)\033[30m轉錄 "\ - "\033[31m(V)\033[30m投票 \033[m" +#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 #define MSG_SEPERATOR "\ ───────────────────────────────────────" @@ -99,11 +99,11 @@ #define ERR_PASSWD "密碼不對喔!你有沒有冒用人家的名字啊?" #define ERR_FILENAME "檔名不合法!" #define MSG_MAILER \ -"\033[34;46m 鴻雁往返 \033[31;47m(R)\033[30m回信\033[31m(x)\033[30m轉達\ -\033[31m(y)\033[30m群組回信\033[31m(D)\033[30m刪除\ -\033[31m(c)\033[30m收入信件夾\033[31m(z)\033[30m信件夾 \033[31m[G]\033[30m繼續?\033[0m" -#define MSG_SHORTULIST "\033[7m\ -使用者代號 目前狀態 │使用者代號 目前狀態 │使用者代號 目前狀態 \033[0m" +ANSI_COLOR(34;46) " 鴻雁往返 " ANSI_COLOR(31;47) "(R)" ANSI_COLOR(30) "回信" ANSI_COLOR(31) "(x)" ANSI_COLOR(30) "轉達\ +" ANSI_COLOR(31) "(y)" ANSI_COLOR(30) "群組回信" ANSI_COLOR(31) "(D)" ANSI_COLOR(30) "刪除\ +" ANSI_COLOR(31) "(c)" ANSI_COLOR(30) "收入信件夾" ANSI_COLOR(31) "(z)" ANSI_COLOR(30) "信件夾 " ANSI_COLOR(31) "[G]" ANSI_COLOR(30) "繼續?" ANSI_COLOR(0) "" +#define MSG_SHORTULIST ANSI_COLOR(7) "\ +使用者代號 目前狀態 │使用者代號 目前狀態 │使用者代號 目前狀態 " ANSI_COLOR(0) "" #define STR_AUTHOR1 "作者:" -- cgit v1.2.3