4 * This file is part of ncurses, designed to be appended after curses.h.in
5 * (see that file for the relevant copyright).
9 * This is an extension to support events...
11 #ifdef NCURSES_WGETCH_EVENTS
12 #if !defined(__BEOS__) || defined(__HAIKU__)
13 /* Fix _nc_timed_wait() on BEOS... */
14 # define NCURSES_EVENT_VERSION 1
15 #endif /* !defined(__BEOS__) */
18 * Bits to set in _nc_event.data.flags
20 # define _NC_EVENT_TIMEOUT_MSEC 1
21 # define _NC_EVENT_FILE 2
22 # define _NC_EVENT_FILE_READABLE 2
23 # if 0 /* Not supported yet... */
24 # define _NC_EVENT_FILE_WRITABLE 4
25 # define _NC_EVENT_FILE_EXCEPTION 8
33 long timeout_msec; /* _NC_EVENT_TIMEOUT_MSEC */
39 } fev; /* _NC_EVENT_FILE */
46 int result_flags; /* _NC_EVENT_TIMEOUT_MSEC or _NC_EVENT_FILE_READABLE */
50 extern NCURSES_EXPORT(int) wgetch_events (WINDOW *, _nc_eventlist *) GCC_DEPRECATED(experimental option); /* experimental */
51 extern NCURSES_EXPORT(int) wgetnstr_events (WINDOW *,char *,int,_nc_eventlist *) GCC_DEPRECATED(experimental option); /* experimental */
53 #define KEY_EVENT 0633 /* We were interrupted by an event */
55 #endif /* NCURSES_WGETCH_EVENTS */