Add a function to wait for any key press

Introduce a new function keys_wait_for_any_key() and use it instead of
wgetch() whenever the return value is discarded.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer
2017-09-03 16:30:39 +02:00
parent 8373ecfe51
commit 53f0f1d2e3
7 changed files with 32 additions and 26 deletions

View File

@@ -658,7 +658,7 @@ void ui_calendar_change_day(int datefmt)
}
if (wrong_day) {
status_mesg(mesg_line1, mesg_line2);
wgetch(win[KEY].p);
keys_wait_for_any_key(win[KEY].p);
}
}
}