diff options
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c index 20387c0..3375349 100644 --- a/src/utils.c +++ b/src/utils.c @@ -17,6 +17,7 @@ get_input(const char *prompt, char *buf) werase(status_window->win); mvwprintw(status_window->win, 0, 0, "%s", prompt); wrefresh(status_window->win); + while ((ch = getch())) { werase(status_window->win); @@ -39,12 +40,12 @@ get_input(const char *prompt, char *buf) } else { return -1; } + } else { + continue; } mvwprintw(status_window->win, 0, 0, "%s%s", prompt, buf); wrefresh(status_window->win); - - LOG_WRITE_INFO("%s", buf); } curs_set(0); |
