diff options
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r-- | mbbsd/io.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |