mirror of
https://git.zap.org.au/git/trader.git
synced 2025-01-03 14:57:41 -05:00
Ignore character returned by wgetch() in wait_for_key()
This commit is contained in:
parent
c6007be5aa
commit
f5ca777b37
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user