diff options
-rw-r--r-- | mbbsd/visio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mbbsd/visio.c b/mbbsd/visio.c index b4b17fd1..641406a2 100644 --- a/mbbsd/visio.c +++ b/mbbsd/visio.c @@ -1052,6 +1052,14 @@ vgetstring(char *_buf, int len, int flags, const char *defstr, const VGET_CALLBA } c = tolower(c); } + // XXX for NOECHO, allow only isprint() characters? + if (flags & VGET_NOECHO) + { + if (!isprint(c)) + { + bell(); continue; + } + } // size check if(iend+1 >= len) |