cex

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.wimdupont.com/cex.git
Log | Files | Refs | LICENSE

commit 5a505f7af6a835b2df4bfaa3bfe8cbd66fcf7e2d
parent 398e4c5977df3b40b9dbe63d79fea66560fcac7e
Author: Wim Dupont <wim@wimdupont.com>
Date:   Mon, 22 Jul 2024 23:17:37 +0200

code cleanup

Diffstat:
Mcex.c | 13+------------
1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/cex.c b/cex.c @@ -1107,20 +1107,9 @@ prompt_confirm(const char *fmt, ...) char response[1]; va_list ap; - move(maxy-1, 0); - clrtoeol(); - - attron(COLOR_PAIR(PROMPT_COLOR)); va_start(ap, fmt); - vw_printw(stdscr, fmt, ap); + prompt_answer(response, 1, fmt, ap); va_end(ap); - attroff(COLOR_PAIR(PROMPT_COLOR)); - - echo(); - curs_set(1); - getnstr(response, 1); - noecho(); - curs_set(0); return strcasecmp(response, "y") == 0; }