From 567095c98731c804dab1c64cac7809aec1cc51d8 Mon Sep 17 00:00:00 2001 From: scw Date: Sat, 15 May 2004 12:30:41 +0000 Subject: First throughing and replying done. git-svn-id: http://opensvn.csie.org/pttbbs/branches/scw.angel@1987 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/stuff.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'mbbsd/stuff.c') diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index e088b116..1debf67b 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -422,6 +422,29 @@ pressanykey() refresh(); } +void +pressanykey_or_callangel(){ + int ch; + + outmsg("\033[37;45;1m \033[33m(h)\033[37m 呼叫小天使 " + "● 請按 \033[33m(Space/Return)\033[37m 繼續 ●" + " \033[33m(^T)\033[37m 存暫存檔 \033[m"); + do { + ch = igetkey(); + + if (ch == Ctrl('T')) { + capture_screen(); + break; + }else if (ch == 'h' || ch == 'H'){ + CallAngel(); + break; + } + } while ((ch != ' ') && (ch != KEY_LEFT) && (ch != '\r') && (ch != '\n')); + move(b_lines, 0); + clrtoeol(); + refresh(); +} + int vmsg(const char *fmt,...) { @@ -606,7 +629,7 @@ show_help(char *helptext[]) else prints(" %s\n", str); } - pressanykey(); + pressanykey_or_callangel(); } #endif // _BBS_UTIL_C_ -- cgit v1.2.3