src/input.h

changeset 30
a285ee393860
parent 7
41468077b5bb
child 32
8a0b85303ee8
equal deleted inserted replaced
29:c6a1ad6cf749 30:a285ee393860
28 */ 28 */
29 29
30 #ifndef INPUT_H 30 #ifndef INPUT_H
31 #define INPUT_H 31 #define INPUT_H
32 32
33 #include <stdlib.h>
34 #include <ncurses.h>
35
33 #ifdef __cplusplus 36 #ifdef __cplusplus
34 extern "C" { 37 extern "C" {
35 #endif 38 #endif
36 39
37 #define COL_YB 1 40 #define COL_YB 1
40 43
41 void init_colorpairs(); 44 void init_colorpairs();
42 45
43 int prompt_yesno(char *msg); 46 int prompt_yesno(char *msg);
44 47
48 int mvwasyncgetnstr(WINDOW* w, int y, int x, char *str, size_t len);
49 #define mvasyncgetnstr(y,x,str,len) mvwasyncgetnstr(stdscr,y,x,str,len)
50 #define asyncgetnstr(str,len) mvwasyncgetnstr(stdscr, stdscr->_cury, \
51 stdscr->_curx, str, len)
52
45 53
46 #ifdef __cplusplus 54 #ifdef __cplusplus
47 } 55 }
48 #endif 56 #endif
49 57

mercurial