diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-21 09:58:47 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-21 09:58:47 +0800 |
commit | 08bea601fe829e23a80cd66a3809e49590a43e2f (patch) | |
tree | d1cf8b8d1038fed6f25f29542bc1bc2ae9255735 /mbbsd | |
parent | f335391efdefbcf5f4da2985d8d214340c69f329 (diff) | |
download | pttbbs-08bea601fe829e23a80cd66a3809e49590a43e2f.tar pttbbs-08bea601fe829e23a80cd66a3809e49590a43e2f.tar.gz pttbbs-08bea601fe829e23a80cd66a3809e49590a43e2f.tar.bz2 pttbbs-08bea601fe829e23a80cd66a3809e49590a43e2f.tar.lz pttbbs-08bea601fe829e23a80cd66a3809e49590a43e2f.tar.xz pttbbs-08bea601fe829e23a80cd66a3809e49590a43e2f.tar.zst pttbbs-08bea601fe829e23a80cd66a3809e49590a43e2f.zip |
- (internal) visio/vget: change old NOECHO to ASCII_ONLY + NOECHO.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4222 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/io.c | 2 | ||||
-rw-r--r-- | mbbsd/visio.c | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -751,7 +751,7 @@ getdata2vgetflag(int echo) else if (echo == NUMECHO) echo = VGET_DIGITS; else if (echo == NOECHO) - echo = VGET_NOECHO; + echo = VGET_PASSWORD; else echo = VGET_DEFAULT; diff --git a/mbbsd/visio.c b/mbbsd/visio.c index 641406a2..03e835af 100644 --- a/mbbsd/visio.c +++ b/mbbsd/visio.c @@ -1052,8 +1052,7 @@ 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 (flags & VGET_ASCII_ONLY) { if (!isprint(c)) { |