From 53f0f1d2e375ed800fe9235d359a119f0eee592e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 3 Sep 2017 16:30:39 +0200 Subject: 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 --- src/custom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/custom.c') diff --git a/src/custom.c b/src/custom.c index 8688245..8201ffa 100644 --- a/src/custom.c +++ b/src/custom.c @@ -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': -- cgit v1.2.3-54-g00ecf