1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-10-06 17:54:03 -04:00

Ignore character returned by wgetch() in wait_for_key()

This commit is contained in:
John Zaitseff 2011-07-20 12:00:21 +10:00
parent c6007be5aa
commit f5ca777b37

View File

@ -1601,9 +1601,6 @@ bool answer_yesno (WINDOW *win)
void wait_for_key (WINDOW *win, int y, int attr)
{
int key;
keypad(win, true);
meta(win, true);
wtimeout(win, -1);
@ -1611,5 +1608,5 @@ void wait_for_key (WINDOW *win, int y, int attr)
center(win, y, attr, "[ Press <SPACE> to continue ] ");
wrefresh(win);
key = wgetch(win);
(void) wgetch(win);
}