From 2e584f03e6242887984c7b5e7cfe77935017e8f5 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 3 Sep 2017 16:37:06 +0200 Subject: Replace remaining uses of wgetch() by keys_wgetch() Signed-off-by: Lukas Fleischer --- src/custom.c | 2 +- src/ui-todo.c | 2 +- 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; -- cgit v1.2.3-70-g09d2