summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-09 01:01:45 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-09 01:01:45 +0800
commit315fa725126ad2046d562a0948413c7fbc88626c (patch)
tree5ad66b40b9012481bc169984e171e25d1bdb0430 /mbbsd/io.c
parent6f8724e2ac7407f12e003f1fde2c7b3b02694498 (diff)
downloadpttbbs-315fa725126ad2046d562a0948413c7fbc88626c.tar
pttbbs-315fa725126ad2046d562a0948413c7fbc88626c.tar.gz
pttbbs-315fa725126ad2046d562a0948413c7fbc88626c.tar.bz2
pttbbs-315fa725126ad2046d562a0948413c7fbc88626c.tar.lz
pttbbs-315fa725126ad2046d562a0948413c7fbc88626c.tar.xz
pttbbs-315fa725126ad2046d562a0948413c7fbc88626c.tar.zst
pttbbs-315fa725126ad2046d562a0948413c7fbc88626c.zip
* skip KEY_UNKNOWN.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3513 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index d3bad9c4..0f36177b 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -801,7 +801,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo)
clen--;
continue;
}
- if (!isprint(ch)) {
+ if (ch>=0x100 || !isprint(ch)) {
continue;
}
if (clen >= len) {
@@ -970,6 +970,8 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo)
case KEY_END:
currchar = clen;
break;
+ case KEY_UNKNOWN:
+ break;
default:
if (isprint2(ch) && clen < len && x + clen < scr_cols) {
#ifdef DBCSAWARE