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 | |
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')
-rw-r--r-- | mbbsd/chat.c | 2 | ||||
-rw-r--r-- | mbbsd/chess.c | 6 | ||||
-rw-r--r-- | mbbsd/io.c | 4 | ||||
-rw-r--r-- | mbbsd/talk.c | 5 |
4 files changed, 16 insertions, 1 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c index 27cd2d38..e165c71a 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -436,6 +436,8 @@ t_chat(void) #endif } continue; + case KEY_UNKNOWN: + continue; } if (ISNEWMAIL(currutmp)) { diff --git a/mbbsd/chess.c b/mbbsd/chess.c index c62b8b95..0a76e166 100644 --- a/mbbsd/chess.c +++ b/mbbsd/chess.c @@ -603,6 +603,9 @@ ChessPlayFuncMy(ChessInfo* info) case I_TIMEOUT: break; + case KEY_UNKNOWN: + break; + default: if (info->actions->process_key) { DO_WITHOUT_PEER(30, @@ -727,6 +730,9 @@ ChessPlayFuncHis(ChessInfo* info) case I_TIMEOUT: break; + case KEY_UNKNOWN: + break; + default: if (info->actions->process_key) { DO_WITHOUT_PEER(30, @@ -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 diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 096d9534..62ad4670 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -661,6 +661,9 @@ my_write2(void) done = 1; break; + case KEY_UNKNOWN: + break; + default: done = 1; tw = swater[(int)which]; @@ -1366,6 +1369,8 @@ do_talk(int fd) break; for (i = 0; i < datac; i++) do_talk_char(&itswin, data[i], flog); + } else if (ch == KEY_UNKNOWN) { + // skip } else { if (ch == Ctrl('C')) { if (im_leaving) |