return (ch == ctrl ('G') ? err : ret);
}
-#ifndef waddnwstr
-int waddwch(WINDOW *win, wchar_t wc)
-{
- char buf[MB_LEN_MAX * 2];
- mbstate_t mbstate;
- ssize_t n1, n2;
-
- p_clear(&mbstate, 1);
- if ((n1 = wcrtomb(buf, wc, &mbstate)) == -1
- || (n2 = wcrtomb(buf + n1, 0, &mbstate)) == -1)
- return -1; /* ERR */
- return waddstr(win, buf);
-}
-#endif
-
-
int _mutt_get_field ( const char *field, char *buf, ssize_t buflen,
int complete, int multiple, char ***files, int *numfiles)
{
#endif
event_t mutt_getch (void);
-#ifndef waddnwstr
-int waddwch(WINDOW *win, wchar_t w);
-#else
#define waddwch(win, w) waddnwstr(win, &(w), 1)
-#endif
void curses_initialize(void);
void curses_install(void);