Use wnoutrefresh, pnoutrefresh and doupdate

Issue #298
This commit is contained in:
James Booth
2014-02-02 23:56:50 +00:00
parent 42300fdc18
commit 0f0cd4cdab
7 changed files with 9 additions and 7 deletions

View File

@@ -45,7 +45,7 @@
#include "ui/windows.h"
#include "xmpp/xmpp.h"
#define _inp_win_refresh() prefresh(inp_win, 0, pad_start, rows-1, 0, rows-1, cols-1)
#define _inp_win_refresh() pnoutrefresh(inp_win, 0, pad_start, rows-1, 0, rows-1, cols-1)
static WINDOW *inp_win;
static int pad_start = 0;
@@ -208,6 +208,7 @@ _inp_get_password(char *passwd)
{
_clear_input();
_inp_win_refresh();
doupdate();
noecho();
mvwgetnstr(inp_win, 0, 1, passwd, MAX_PASSWORD_SIZE);
wmove(inp_win, 0, 0);