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:
@@ -239,6 +239,11 @@ int keys_wgetch(WINDOW *win)
|
||||
|
||||
}
|
||||
|
||||
void keys_wait_for_any_key(WINDOW *win)
|
||||
{
|
||||
keys_wgetch(win);
|
||||
}
|
||||
|
||||
enum key keys_get(WINDOW *win, int *count, int *reg)
|
||||
{
|
||||
int ch = '0';
|
||||
|
||||
Reference in New Issue
Block a user