summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
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