summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-06 13:03:41 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-06 13:03:41 +0800
commit01cae7cc0030e26ce53c5743fc0dccc4aa7bf683 (patch)
tree387b16397b214d8ae40ac24672149f4a3b035418 /include
parentff24026ce0222c9b0bc78ee075dd0ca9bb50c193 (diff)
downloadpttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.gz
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.bz2
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.lz
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.xz
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.tar.zst
pttbbs-01cae7cc0030e26ce53c5743fc0dccc4aa7bf683.zip
Large Terminal Rules
New api: *lr family calls are used to pad and fir terminal width. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2996 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/common.h55
-rw-r--r--include/proto.h2
2 files changed, 33 insertions, 24 deletions
diff --git a/include/common.h b/include/common.h
index c9836b12..acbf688d 100644
--- a/include/common.h
+++ b/include/common.h
@@ -33,8 +33,6 @@
#define FN_BOARDHELP "etc/board.help"
#define MSG_DEL_CANCEL "取消刪除"
-#define MSG_SELECT_BOARD ANSI_COLOR(7) "【 選擇看板 】" ANSI_RESET "\n" \
- "請輸入看板名稱(按空白鍵自動搜尋):"
#define MSG_CLOAKED "哈哈!我隱形了!看不到勒... :P"
#define MSG_UNCLOAK "我要重現江湖了...."
#define MSG_BIG_BOY "我是大帥哥! ^o^Y"
@@ -46,16 +44,6 @@
#define MSG_PLANT "植物也有性別喔.."
#define MSG_MIME "礦物總沒性別了吧"
#define MSG_PASSWD "請輸入您的密碼: "
-#define MSG_POSTER ANSI_COLOR(34;46) " 文章選讀 "\
- 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) "(/?a)" ANSI_COLOR(30) "搜尋標題/作者 "\
- ANSI_COLOR(31) "(V)" ANSI_COLOR(30) "投票 "\
- ANSI_RESET ANSI_CLRTOEND
-#define MSG_SEPERATOR "\
-───────────────────────────────────────"
#define MSG_CLOAKED "哈哈!我隱形了!看不到勒... :P"
#define MSG_UNCLOAK "我要重現江湖了...."
@@ -99,24 +87,43 @@
#define ERR_UID "這裡沒有這個人啦!"
#define ERR_PASSWD "密碼不對喔!你有沒有冒用人家的名字啊?"
#define ERR_FILENAME "檔名不合法!"
+
+#define STR_AUTHOR1 "作者:"
+#define STR_AUTHOR2 "發信人:"
+#define STR_POST1 "看板:"
+#define STR_POST2 "站內:"
+
+/* LONG MESSAGES */
+#define MSG_SELECT_BOARD ANSI_COLOR(7) "【 選擇看板 】" ANSI_RESET "\n" \
+ "請輸入看板名稱(按空白鍵自動搜尋):"
+
+#define MSG_POSTER_LEN (78)
+#define MSG_POSTER ANSI_COLOR(34;46) " 文章選讀 "\
+ 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) "(/?a)" ANSI_COLOR(30) "搜尋標題/作者 "\
+ ANSI_COLOR(31) "(V)" ANSI_COLOR(30) "投票 "\
+ ""
+#define MSG_MAILER_LEN (78)
#define MSG_MAILER \
- 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) "←[q]" ANSI_COLOR(30) "離開 " ANSI_RESET ANSI_CLRTOEND
+ 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) "←[q]" ANSI_COLOR(30) "離開 " \
+ ""
#define MSG_SHORTULIST ANSI_COLOR(7) \
"使用者代號 目前狀態 │使用者代號 目前狀態 │"\
"使用者代號 目前狀態 " ANSI_RESET ANSI_CLRTOEND
-#define STR_AUTHOR1 "作者:"
-#define STR_AUTHOR2 "發信人:"
-#define STR_POST1 "看板:"
-#define STR_POST2 "站內:"
+#define MSG_SEPERATOR "\
+───────────────────────────────────────"
/* Flags to getdata input function */
#define NOECHO 0
diff --git a/include/proto.h b/include/proto.h
index 699c1ff8..2cf1f204 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -522,11 +522,13 @@ void mouts(int y, int x, const char *str);
void move(int y, int x);
void outs(const char *str);
void outs_n(const char *str, int n);
+void outslr(const char *left, int leftlen, const char *right, int rightlen);
void clrtoeol(void);
void clear(void);
void refresh(void);
void clrtobot(void);
void outmsg(const char *msg);
+void outmsglr(const char *msg, int llen, const char *rmsg, int rlen);
void prints(const char *fmt, ...) GCC_CHECK_FORMAT(1,2);
void region_scroll_up(int top, int bottom);
void outc(unsigned char ch);