summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-11-27 11:14:19 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-11-27 11:14:19 +0800
commit5ac134ce071c82d17f1b0887bd26a6f2c93d0d1c (patch)
tree23e1bd0bcc540875270128068c65831e51c0855c
parent68b0ef97aa930502adf01f7147baed081022a23e (diff)
downloadpttbbs-5ac134ce071c82d17f1b0887bd26a6f2c93d0d1c.tar
pttbbs-5ac134ce071c82d17f1b0887bd26a6f2c93d0d1c.tar.gz
pttbbs-5ac134ce071c82d17f1b0887bd26a6f2c93d0d1c.tar.bz2
pttbbs-5ac134ce071c82d17f1b0887bd26a6f2c93d0d1c.tar.lz
pttbbs-5ac134ce071c82d17f1b0887bd26a6f2c93d0d1c.tar.xz
pttbbs-5ac134ce071c82d17f1b0887bd26a6f2c93d0d1c.tar.zst
pttbbs-5ac134ce071c82d17f1b0887bd26a6f2c93d0d1c.zip
fix ansi cache for getdata()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5477 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/stuff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/stuff.c b/pttbbs/mbbsd/stuff.c
index a41be477..aacdfef4 100644
--- a/pttbbs/mbbsd/stuff.c
+++ b/pttbbs/mbbsd/stuff.c
@@ -378,7 +378,7 @@ getdata2vgetflag(int echo)
int
getdata_buf(int line, int col, const char *prompt, char *buf, int len, int echo)
{
- move(line, col);
+ move(line, col); SOLVE_ANSI_CACHE();
if(prompt && *prompt) outs(prompt);
return vgetstr(buf, len, getdata2vgetflag(echo), buf);
}
@@ -387,7 +387,7 @@ int
getdata_str(int line, int col, const char *prompt, char *buf, int len, int echo,
const char *defaultstr)
{
- move(line, col);
+ move(line, col); SOLVE_ANSI_CACHE();
if(prompt && *prompt) outs(prompt);
return vgetstr(buf, len, getdata2vgetflag(echo), defaultstr);
}
@@ -395,7 +395,7 @@ getdata_str(int line, int col, const char *prompt, char *buf, int len, int echo,
int
getdata(int line, int col, const char *prompt, char *buf, int len, int echo)
{
- move(line, col);
+ move(line, col); SOLVE_ANSI_CACHE();
if(prompt && *prompt) outs(prompt);
return vgets(buf, len, getdata2vgetflag(echo));
}