diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2017-09-03 16:37:06 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2017-09-03 16:37:35 +0200 |
commit | 2e584f03e6242887984c7b5e7cfe77935017e8f5 (patch) | |
tree | 3f42532f67db49e7773f049d87b7048d1cbf116b | |
parent | 53f0f1d2e375ed800fe9235d359a119f0eee592e (diff) | |
download | calcurse-2e584f03e6242887984c7b5e7cfe77935017e8f5.tar.gz calcurse-2e584f03e6242887984c7b5e7cfe77935017e8f5.zip |
Replace remaining uses of wgetch() by keys_wgetch()
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r-- | src/custom.c | 2 | ||||
-rw-r--r-- | src/ui-todo.c | 2 | ||||
-rw-r--r-- | src/utils.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/custom.c b/src/custom.c index 8201ffa..1826156 100644 --- a/src/custom.c +++ b/src/custom.c @@ -1092,7 +1092,7 @@ void custom_config_main(void) wmove(win[STA].p, 0, 0); wins_doupdate(); - while ((ch = wgetch(win[KEY].p)) != 'q') { + while ((ch = keys_wgetch(win[KEY].p)) != 'q') { switch (ch) { case 'C': case 'c': diff --git a/src/ui-todo.c b/src/ui-todo.c index 23ebb16..d75f724 100644 --- a/src/ui-todo.c +++ b/src/ui-todo.c @@ -66,7 +66,7 @@ void ui_todo_add(void) GETSTRING_VALID) { while ((ch < '0') || (ch > '9')) { status_mesg(mesg_id, ""); - ch = wgetch(win[KEY].p); + ch = keys_wgetch(win[KEY].p); } struct todo *todo = todo_add(todo_input, ch - '0', 0, NULL); ui_todo_load_items(); diff --git a/src/utils.c b/src/utils.c index e922997..e0e35bc 100644 --- a/src/utils.c +++ b/src/utils.c @@ -220,7 +220,7 @@ int status_ask_choice(const char *message, const char choice[], status_mesg(message, avail_choice); for (;;) { - ch = wgetch(win[KEY].p); + ch = keys_wgetch(win[KEY].p); for (i = 1; i <= nb_choice; i++) if (ch == choice[i]) return i; |