diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-05-09 01:01:45 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-05-09 01:01:45 +0800 |
commit | 315fa725126ad2046d562a0948413c7fbc88626c (patch) | |
tree | 5ad66b40b9012481bc169984e171e25d1bdb0430 /mbbsd/io.c | |
parent | 6f8724e2ac7407f12e003f1fde2c7b3b02694498 (diff) | |
download | pttbbs-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.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 |