1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Username now hidden when entering password

This commit is contained in:
James Booth 2012-07-09 23:53:23 +01:00
parent 11125561f8
commit 7f85a05bfc

View File

@ -157,7 +157,11 @@ void inp_get_char(int *ch, char *input, int *size)
void inp_get_password(char *passwd)
{
int rows, cols;
getmaxyx(stdscr, rows, cols);
wclear(inp_win);
prefresh(inp_win, 0, pad_start, rows-1, 0, rows-1, cols-1);
noecho();
mvwgetnstr(inp_win, 0, 1, passwd, 20);
wmove(inp_win, 0, 0);