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:
@@ -1102,7 +1102,7 @@ void custom_config_main(void)
|
||||
colorize = 0;
|
||||
wins_erase_status_bar();
|
||||
mvwaddstr(win[STA].p, 0, 0, no_color_support);
|
||||
wgetch(win[KEY].p);
|
||||
keys_wait_for_any_key(win[KEY].p);
|
||||
}
|
||||
break;
|
||||
case 'L':
|
||||
|
||||
Reference in New Issue
Block a user