src/input.h

changeset 30
a285ee393860
parent 7
41468077b5bb
child 32
8a0b85303ee8
     1.1 --- a/src/input.h	Mon Apr 07 14:08:57 2014 +0200
     1.2 +++ b/src/input.h	Mon Apr 07 17:39:46 2014 +0200
     1.3 @@ -30,6 +30,9 @@
     1.4  #ifndef INPUT_H
     1.5  #define	INPUT_H
     1.6  
     1.7 +#include <stdlib.h>
     1.8 +#include <ncurses.h>
     1.9 +
    1.10  #ifdef	__cplusplus
    1.11  extern "C" {
    1.12  #endif
    1.13 @@ -42,6 +45,11 @@
    1.14  
    1.15  int prompt_yesno(char *msg);
    1.16  
    1.17 +int mvwasyncgetnstr(WINDOW* w, int y, int x, char *str, size_t len);
    1.18 +#define mvasyncgetnstr(y,x,str,len) mvwasyncgetnstr(stdscr,y,x,str,len)
    1.19 +#define asyncgetnstr(str,len) mvwasyncgetnstr(stdscr, stdscr->_cury, \
    1.20 +    stdscr->_curx, str, len)
    1.21 +
    1.22  
    1.23  #ifdef	__cplusplus
    1.24  }

mercurial