about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-07-09 23:53:23 +0100
committerJames Booth <boothj5@gmail.com>2012-07-09 23:53:23 +0100
commit7f85a05bfcb5d51b247bed4353eddf66a96ebf31 (patch)
treec0d79f8d1df111ca8fbeee0aab0038510c6db4da /src
parent11125561f86cc44672fedf18965cfbb2221126d7 (diff)
downloadprofani-tty-7f85a05bfcb5d51b247bed4353eddf66a96ebf31.tar.gz
Username now hidden when entering password
Diffstat (limited to 'src')
-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);