summaryrefslogtreecommitdiffstats
path: root/mbbsd/stuff.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-24 00:26:20 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-24 00:26:20 +0800
commit91f6682a7690a4dd6ae160804b2009a0a98f8122 (patch)
treed82c7c3071bd444ac397ad7f14e247be031914d3 /mbbsd/stuff.c
parentb640fe2c00e591888ecc1ca594e5e51336c3bf44 (diff)
downloadpttbbs-91f6682a7690a4dd6ae160804b2009a0a98f8122.tar
pttbbs-91f6682a7690a4dd6ae160804b2009a0a98f8122.tar.gz
pttbbs-91f6682a7690a4dd6ae160804b2009a0a98f8122.tar.bz2
pttbbs-91f6682a7690a4dd6ae160804b2009a0a98f8122.tar.lz
pttbbs-91f6682a7690a4dd6ae160804b2009a0a98f8122.tar.xz
pttbbs-91f6682a7690a4dd6ae160804b2009a0a98f8122.tar.zst
pttbbs-91f6682a7690a4dd6ae160804b2009a0a98f8122.zip
integrate igetkey igetch egetch
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1828 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r--mbbsd/stuff.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index ba29c84e..605e8cd3 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -415,15 +415,10 @@ vmsg_lines(const int lines, const char msg[])
outs("\033[46;1m \033[37m"
"\033[200m\033[1431m\033[506m□ 請按 \033[33m(Space/Return)\033[37m 繼續 □\033[201m (^T) 收到暫存檔 \033[m");
- do {
- ch = igetkey();
-
- if (ch == Ctrl('T')) {
+ ch = igetch();
+ if (ch == Ctrl('T')) {
capture_screen();
- break;
}
- } while ((ch != ' ') && (ch != KEY_LEFT) && (ch != '\r') && (ch != '\n'));
-
move(lines, 0);
clrtoeol();
@@ -449,7 +444,7 @@ vmsg(const char *fmt,...)
va_start(ap, fmt);
vsnprintf(msg+14, 55, fmt, ap);
va_end(ap);
- for(i=69; i>0 && *(msg+i); i--)
+ for(i=69; i>0 && *(msg+i+1); i--)
*(msg+i) = ' ';
strcat(msg+69,"\033[33;46m \033[200m\033[1431m\033[506m[請按任意鍵繼續]\033[201m \033[m");
return vmsg_lines(b_lines, msg);