Replace remaining uses of wgetch() by keys_wgetch()
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
53f0f1d2e3
commit
2e584f03e6
@ -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':
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user