diff options
Diffstat (limited to 'mbbsd/go.c')
-rw-r--r-- | mbbsd/go.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -827,7 +827,8 @@ go_genlog(ChessInfo* info, FILE* fp, ChessGameResult result) { const static char ColName[] = "ABCDEFGHJKLMNOPQRST"; const int nStep = info->history.used; - int i; + char buf[ANSILINELEN] = ""; + int i, x, y; int sethand = 0; if (nStep > 0) { @@ -837,9 +838,14 @@ go_genlog(ChessInfo* info, FILE* fp, ChessGameResult result) sethand = step->loc.r; } - if (big_picture) + getyx(&y, &x); for (i = 1; i <= 22; i++) - fprintf(fp, "%.*s\n", big_picture[i].len, big_picture[i].data); + { + move(i, 0); + inansistr(buf, sizeof(buf)-1); + fprintf(fp, "%s\n", buf); + } + move(y, x); fprintf(fp, "\n"); fprintf(fp, "按 z 可進入打譜模式\n"); |