X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=curs_lib.c;h=a764b6ab17e13706af4a44c20ebc49e320de10bd;hp=1eb0911a598d0cbd9a6fc9f16536d752bfd94967;hb=8dea1e97637d64ca1bd59251720e1c790237c8a8;hpb=0d5798fa40d68a2cff1193196b9c4ddd67da5063 diff --git a/curs_lib.c b/curs_lib.c index 1eb0911..a764b6a 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -119,6 +119,29 @@ int _mutt_get_field (/* const */ char *field, char *buf, size_t buflen, int comp return (ret); } +int _mutt_get_field_att (/* const */ char *field, char *buf, size_t buflen, int complete, int multiple, char ***files, int *numfiles) +{ + int ret; + int x, y; + + ENTER_STATE *es = mutt_new_enter_state(); + + do + { + CLEARLINE (LINES-1); + addstr (field); + mutt_refresh (); + getyx (stdscr, y, x); + ret = _mutt_enter_string_att (buf, buflen, y, x, complete, multiple, files, numfiles, es); + } + while (ret == 1); + CLEARLINE (LINES-1); + mutt_free_enter_state (&es); + + return (ret); +} + + int mutt_get_password (char *msg, char *buf, size_t buflen) { int rc;