From 7f85a05bfcb5d51b247bed4353eddf66a96ebf31 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 9 Jul 2012 23:53:23 +0100 Subject: Username now hidden when entering password --- src/input_win.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/input_win.c b/src/input_win.c index 25a65213..ad4c2ecc 100644 --- a/src/input_win.c +++ b/src/input_win.c @@ -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); -- cgit 1.4.1-2-gfad0