--- a/src/main.c Mon Aug 31 17:56:17 2026 +0200 +++ b/src/main.c Mon Aug 31 18:03:50 2026 +0200 @@ -404,7 +404,12 @@ } static void save_pgn(GameState *gamestate) { - int y = getcury(stdscr); + int y; + { + int x; + getyx(stdscr, y, x); + (void)x; /* we want to be POSIX curses compliant */ + } /* ask for player names */ { @@ -895,7 +900,7 @@ draw_board(&viewedstate, WHITE); timecontrol(&viewedstate); - move(getmaxy(stdscr)-5, 0); + move(input_getmaxy()-5, 0); if (gamestate->wresign) { addstr("White resigned.\n"); } else if (gamestate->bresign) { @@ -962,7 +967,7 @@ } static void game_play_singlemachine(GameState *gamestate) { - inputy = getmaxy(stdscr) - 6; + inputy = input_getmaxy() - 6; Color curcol = current_color(gamestate); bool running = is_game_running(gamestate); @@ -977,7 +982,7 @@ } static void game_play(GameState *gamestate, int opponent, bool as_client) { - inputy = getmaxy(stdscr) - 6; + inputy = input_getmaxy() - 6; Color mycolor = gamestate->info.servercolor; if (as_client) { @@ -1310,7 +1315,7 @@ gamestate_cleanup(&gamestate); - mvaddstr(getmaxy(stdscr)-1, 0, + mvaddstr(input_getmaxy()-1, 0, "Game has ended. Press any key to leave..."); clrtoeol(); refresh();