diff --git a/README.md b/README.md index ef4d3139f..9a0e01b7c 100644 --- a/README.md +++ b/README.md @@ -338,9 +338,9 @@ wchar_supppuab_p(wchar_t w){ // masked and unmasked per ppoll(2). It should generally contain all signals. // Returns a single Unicode code point, or (wchar_t)-1 on error. 'sigmask' may // be NULL. -int notcurses_getc(struct notcurses* n, const struct timespec* ts, sigset_t* sigmask); +wchar_t notcurses_getc(struct notcurses* n, const struct timespec* ts, sigset_t* sigmask); -static inline int +static inline wchar_t notcurses_getc_nblock(struct notcurses* n){ sigset_t sigmask; sigfillset(&sigmask); diff --git a/include/notcurses.h b/include/notcurses.h index e92052624..ae30beda5 100644 --- a/include/notcurses.h +++ b/include/notcurses.h @@ -228,9 +228,9 @@ wchar_supppuab_p(wchar_t w){ // masked and unmasked per ppoll(2). It should generally contain all signals. // Returns a single Unicode code point, or (wchar_t)-1 on error. 'sigmask' may // be NULL. -API int notcurses_getc(struct notcurses* n, const struct timespec* ts, sigset_t* sigmask); +API wchar_t notcurses_getc(struct notcurses* n, const struct timespec* ts, sigset_t* sigmask); -static inline int +static inline wchar_t notcurses_getc_nblock(struct notcurses* n){ sigset_t sigmask; sigfillset(&sigmask);