diff -r c6a1ad6cf749 -r a285ee393860 src/input.h --- a/src/input.h Mon Apr 07 14:08:57 2014 +0200 +++ b/src/input.h Mon Apr 07 17:39:46 2014 +0200 @@ -30,6 +30,9 @@ #ifndef INPUT_H #define INPUT_H +#include +#include + #ifdef __cplusplus extern "C" { #endif @@ -42,6 +45,11 @@ int prompt_yesno(char *msg); +int mvwasyncgetnstr(WINDOW* w, int y, int x, char *str, size_t len); +#define mvasyncgetnstr(y,x,str,len) mvwasyncgetnstr(stdscr,y,x,str,len) +#define asyncgetnstr(str,len) mvwasyncgetnstr(stdscr, stdscr->_cury, \ + stdscr->_curx, str, len) + #ifdef __cplusplus }