summaryrefslogtreecommitdiffstats
path: root/mbbsd/angel.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-15 01:16:13 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-15 01:16:13 +0800
commita942aaef1cdde595f482a853e6a1291c04b9d2c7 (patch)
tree73c7992b234f85bd7440a33ccf2a6c610cdff42c /mbbsd/angel.c
parenta2f6c27927c37f89b888f9e4c1afe96049bdf406 (diff)
downloadpttbbs-a942aaef1cdde595f482a853e6a1291c04b9d2c7.tar
pttbbs-a942aaef1cdde595f482a853e6a1291c04b9d2c7.tar.gz
pttbbs-a942aaef1cdde595f482a853e6a1291c04b9d2c7.tar.bz2
pttbbs-a942aaef1cdde595f482a853e6a1291c04b9d2c7.tar.lz
pttbbs-a942aaef1cdde595f482a853e6a1291c04b9d2c7.tar.xz
pttbbs-a942aaef1cdde595f482a853e6a1291c04b9d2c7.tar.zst
pttbbs-a942aaef1cdde595f482a853e6a1291c04b9d2c7.zip
- (internal) code refine - improving visio system
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4164 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/angel.c')
-rw-r--r--mbbsd/angel.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/mbbsd/angel.c b/mbbsd/angel.c
index 11fe97eb..360c85d0 100644
--- a/mbbsd/angel.c
+++ b/mbbsd/angel.c
@@ -470,4 +470,33 @@ CallAngel(){
entered = 0;
}
+void
+pressanykey_or_callangel(){
+ int ch;
+
+ if (!HasUserPerm(PERM_LOGINOK))
+ {
+ pressanykey();
+ return;
+ }
+
+ // TODO use visio API instead.
+ outmsg(
+ VCLR_PAUSE_PAD " ▄▄▄▄ "
+ ANSI_COLOR(32) "H " ANSI_COLOR(36) "呼叫小天使" ANSI_COLOR(34)
+ " ▄▄▄▄" ANSI_COLOR(37;44) " 請按 " ANSI_COLOR(36) "空白鍵 "
+ ANSI_COLOR(37) "繼續 " ANSI_COLOR(1;34)
+ "▄▄▄▄▄▄▄▄▄▄▄▄▄▄ " ANSI_RESET);
+ do {
+ ch = igetch();
+ if (ch == 'h' || ch == 'H'){
+ CallAngel();
+ break;
+ }
+ } while ((ch != ' ') && (ch != KEY_LEFT) && (ch != '\r') && (ch != '\n'));
+ move(b_lines, 0);
+ clrtoeol();
+ refresh();
+}
+
#endif // PLAY_ANGEL