int mutt_enter_string(char *buf, size_t buflen, int y, int x, int flags) { int rv; struct enter_state *es = mutt_new_enter_state(); rv = _mutt_enter_string(buf, buflen, y, x, flags, 0, NULL, NULL, es); mutt_free_enter_state(&es); return rv; }
int _mutt_get_field (/* const */ char *field, char *buf, size_t buflen, int complete, int multiple, char ***files, int *numfiles) { int ret; int len = mutt_strlen (field); /* in case field==buffer */ do { CLEARLINE (LINES-1); addstr (field); mutt_refresh (); ret = _mutt_enter_string ((unsigned char *) buf, buflen, LINES-1, len, complete, multiple, files, numfiles); } while (ret == 1); CLEARLINE (LINES-1); return (ret); }