diff -r 3d4d361ebb80 -r 4913bc0ff3e5 src/input.h --- a/src/input.h Mon Aug 31 17:44:06 2026 +0200 +++ b/src/input.h Mon Aug 31 17:51:32 2026 +0200 @@ -31,8 +31,6 @@ #define INPUT_H #include -#include /* necessary to avoid errors with outdated curses.h */ -#include #ifdef __cplusplus extern "C" { @@ -40,36 +38,6 @@ int prompt_yesno(char *msg); - -/** - * Asynchronous variant of mvwgetnstr(). - * - * Needs halfdelay mode enabled! - * - * @param w the window - * @param y the window y position - * @param x the window x position - * @param str the buffer for the read string - * @param pos a pointer to the object containing the current buffer position - * @param len the length of the buffer - * @return 0 if reading is in progress and 1 when a complete line is read - */ -int mvwasyncgetnstr(WINDOW* w,int y,int x,char *str,size_t *pos,size_t len); - -/** - * Asynchronous variant of mvgetnstr(). - * - * Needs halfdelay mode enabled! - * - * @param y the window y position - * @param x the window x position - * @param str the buffer for the read string - * @param pos a pointer to the object containing the current buffer position - * @param len the length of the buffer - * @return 0 if reading is in progress and 1 when a complete line is read - */ -#define mvasyncgetnstr(y,x,str,pos,len) mvwasyncgetnstr(stdscr,y,x,str,pos,len) - /** * Asynchronous variant of getnstr(). * @@ -80,8 +48,7 @@ * @param len the length of the buffer * @return 0 if reading is in progress and 1 when a complete line is read */ -#define asyncgetnstr(str,pos,len) mvwasyncgetnstr(stdscr, getcury(stdscr), \ - getcurx(stdscr), str, pos, len) +int asyncgetnstr(char *str, size_t *pos, size_t len); #ifdef __cplusplus