summaryrefslogtreecommitdiffstats
path: root/mbbsd/gomo.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/gomo.c')
-rw-r--r--mbbsd/gomo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index b18fe5d0..5507913f 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -422,16 +422,17 @@ gomo_genlog(ChessInfo* info, FILE* fp, ChessGameResult result)
{
char buf[ANSILINELEN] = "";
const int nStep = info->history.used;
- int i, x, y;
+ int i;
+ VREFCUR cur;
- getyx(&y, &x);
+ cur = vcur_save();
for (i = 1; i <= 18; i++)
{
move(i, 0);
inansistr(buf, sizeof(buf)-1);
fprintf(fp, "%s\n", buf);
}
- move(y, x);
+ vcur_restore(cur);
fprintf(fp, "\n");
fprintf(fp, "按 z 可進入打譜模式\n");