diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-15 20:30:41 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-15 20:30:41 +0800 |
commit | 567095c98731c804dab1c64cac7809aec1cc51d8 (patch) | |
tree | 6f117a5470d8467b12dc030a131c21071815a377 /mbbsd/stuff.c | |
parent | a8b87ec695abd673d76c148985b0f255d7083ae5 (diff) | |
download | pttbbs-567095c98731c804dab1c64cac7809aec1cc51d8.tar pttbbs-567095c98731c804dab1c64cac7809aec1cc51d8.tar.gz pttbbs-567095c98731c804dab1c64cac7809aec1cc51d8.tar.bz2 pttbbs-567095c98731c804dab1c64cac7809aec1cc51d8.tar.lz pttbbs-567095c98731c804dab1c64cac7809aec1cc51d8.tar.xz pttbbs-567095c98731c804dab1c64cac7809aec1cc51d8.tar.zst pttbbs-567095c98731c804dab1c64cac7809aec1cc51d8.zip |
First throughing and replying done.
git-svn-id: http://opensvn.csie.org/pttbbs/branches/scw.angel@1987 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r-- | mbbsd/stuff.c | 25 |
1 files changed, 24 insertions, 1 deletions
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_ |