Moved _ask_password to UI module

This commit is contained in:
James Booth
2013-12-15 19:38:23 +00:00
parent eff2ef3859
commit 079ea5304b
9 changed files with 49 additions and 43 deletions

View File

@@ -1330,6 +1330,19 @@ ui_win_unread(int index)
}
}
char *
ui_ask_password(void)
{
char *passwd = malloc(sizeof(char) * (MAX_PASSWORD_SIZE + 1));
status_bar_get_password();
status_bar_refresh();
inp_block();
inp_get_password(passwd);
inp_non_block();
return passwd;
}
static void
_ui_draw_win_title(void)
{