--- a/src/input.c Mon Aug 31 17:44:06 2026 +0200 +++ b/src/input.c Mon Aug 31 17:51:32 2026 +0200 @@ -29,6 +29,8 @@ #include "input.h" #include <ctype.h> +#include <stdbool.h> /* necessary to avoid errors with outdated curses.h */ +#include <curses.h> int prompt_yesno(char *msg) { printw("%s (y/n)? ", msg); @@ -44,7 +46,10 @@ return ch == 'y'; } -int mvwasyncgetnstr(WINDOW* w,int y,int x,char *str,size_t *pos,size_t len) { +int asyncgetnstr(char *str, size_t *pos, size_t len) { + WINDOW* w = stdscr; + int y, x; + getyx(w, y, x); mvwaddnstr(w, y, x, str, *pos); wrefresh(w); int c = wgetch(w);