summaryrefslogtreecommitdiffstats
path: root/include/chc.h
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 10:46:24 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 10:46:24 +0800
commita0f8ef1e2e04905908478088fc376435b770417c (patch)
treea96bd4096703e5d0bb0b9fe7c9499d0db7768070 /include/chc.h
parentf55eaef82ab265772418a545f32fa2780468603b (diff)
downloadpttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.gz
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.bz2
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.lz
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.xz
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.tar.zst
pttbbs-a0f8ef1e2e04905908478088fc376435b770417c.zip
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
Diffstat (limited to 'include/chc.h')
-rw-r--r--include/chc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/chc.h b/include/chc.h
index e3b16d38..6be0512c 100644
--- a/include/chc.h
+++ b/include/chc.h
@@ -26,11 +26,11 @@
#define LTR(x) ((x) * 2 + 3)
#define CHE(a, b) ((a) | ((b) << 3))
-#define BLACK_COLOR "\033[1;36m"
-#define RED_COLOR "\033[1;31m"
-#define BLACK_REVERSE "\033[1;37;46m"
-#define RED_REVERSE "\033[1;37;41m"
-#define TURN_COLOR "\033[1;33m"
+#define BLACK_COLOR ANSI_COLOR(1;36)
+#define RED_COLOR ANSI_COLOR(1;31)
+#define BLACK_REVERSE ANSI_COLOR(1;37;46)
+#define RED_REVERSE ANSI_COLOR(1;37;41)
+#define TURN_COLOR ANSI_COLOR(1;33)
typedef struct chcusr_t{
char userid[IDLEN + 1];