about summary refs log tree commit diff stats
path: root/src/input_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_win.c')
-rw-r--r--src/input_win.c4
1 files changed, 4 insertions, 0 deletions
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);