diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2017-09-03 16:30:39 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2017-09-03 16:37:35 +0200 |
commit | 53f0f1d2e375ed800fe9235d359a119f0eee592e (patch) | |
tree | 024fb7cdb29e35df2c9d9c75a6f981d1d7dbba87 /src/calcurse.h | |
parent | 8373ecfe5137a42035ce472eb47e84391b10a2c4 (diff) | |
download | calcurse-53f0f1d2e375ed800fe9235d359a119f0eee592e.tar.gz calcurse-53f0f1d2e375ed800fe9235d359a119f0eee592e.zip |
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>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index f9439b7..10e60aa 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -873,6 +873,7 @@ void keys_dump_defaults(char *); const char *keys_get_label(enum key); enum key keys_get_action(int); int keys_wgetch(WINDOW *); +void keys_wait_for_any_key(WINDOW *); enum key keys_get(WINDOW *, int *, int *); int keys_assign_binding(int, enum key); void keys_remove_binding(int, enum key); |