summaryrefslogtreecommitdiffstats
path: root/mbbsd/calendar.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-13 19:50:24 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-13 19:50:24 +0800
commit6d6273c57b2a35a2d71c778de11643376b5eb015 (patch)
tree653af56c3c279496cef16884e95fad547b5df08a /mbbsd/calendar.c
parentafd40b73c635e700c5ba4dda6a3e162c78ea52cd (diff)
downloadpttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.gz
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.bz2
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.lz
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.xz
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.zst
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.zip
- add calendar in login view
- add color help in calendar help - change param of more path to const git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4157 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/calendar.c')
-rw-r--r--mbbsd/calendar.c56
1 files changed, 31 insertions, 25 deletions
diff --git a/mbbsd/calendar.c b/mbbsd/calendar.c
index c8ad6994..ba290aa2 100644
--- a/mbbsd/calendar.c
+++ b/mbbsd/calendar.c
@@ -73,30 +73,14 @@ ParseColor(const char *color)
char *str;
int val;
} c[] = {
- {
- "black", 0
- },
- {
- "red", 1
- },
- {
- "green", 2
- },
- {
- "yellow", 3
- },
- {
- "blue", 4
- },
- {
- "magenta", 5
- },
- {
- "cyan", 6
- },
- {
- "white", 7
- }
+ { "black", 0 },
+ { "red", 1 },
+ { "green", 2 },
+ { "yellow", 3 },
+ { "blue", 4 },
+ { "magenta", 5 },
+ { "cyan", 6 },
+ { "white", 7 }
};
int i;
@@ -292,7 +276,29 @@ u_editcalendar(void)
move(1, 0);
clrtoln(b_lines);
move(3, 0);
- prints("行事曆格式說明:\n編輯時以一行為單位,如:\n\n# 井號開頭的是註解\n2006/05/04 red 上批踢踢!\n\n其中的 red 是指表示的顏色。");
+ prints("行事曆格式說明:\n編輯時以一行為單位,如:\n\n"
+ "# 井號開頭的是註解\n2006/05/04 red 上批踢踢!\n\n"
+ "其中的 red 是指表示的顏色。\n"
+ "目前可用的顏色為:\n "
+ ANSI_COLOR(1;30) "black "
+ ANSI_COLOR(31) "red "
+ ANSI_COLOR(32) "green "
+ ANSI_COLOR(33) "yellow "
+ ANSI_COLOR(34) "blue "
+ ANSI_COLOR(35) "magenta "
+ ANSI_COLOR(36) "cyan "
+ ANSI_COLOR(37) "white "
+ ANSI_RESET "\n "
+ ANSI_COLOR(1;30;47) "black "
+ ANSI_COLOR(31) "red "
+ ANSI_COLOR(32) "green "
+ ANSI_COLOR(33) "yellow "
+ ANSI_COLOR(34) "blue "
+ ANSI_COLOR(35) "magenta "
+ ANSI_COLOR(36) "cyan "
+ ANSI_COLOR(37) "white "
+ ANSI_RESET
+ );
pressanykey();
}
return 0;