From a90561d37466723905ea6725ff06b1de042bb2e7 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sat, 25 Nov 2017 14:31:54 +0100 Subject: [PATCH] PhotoRec: Make "Continue previous session" give output after receiving Y Close https://github.com/cgsecurity/testdisk/issues/35 --- configure.ac | 2 +- src/pdiskseln.c | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5ab5612a..48dbff5c 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ AC_INIT([testdisk],[7.1-WIP],[grenier@cgsecurity.org]) AC_LANG(C) sinclude(acx_pthread.m4) sinclude(mkdir.m4) -TESTDISKDATE="July 2017" +TESTDISKDATE="November 2017" AC_SUBST(TESTDISKDATE) AC_DEFINE_UNQUOTED([TESTDISKDATE],"$TESTDISKDATE",[Date of release]) AC_CONFIG_AUX_DIR(config) diff --git a/src/pdiskseln.c b/src/pdiskseln.c index a396e49f..e4629966 100644 --- a/src/pdiskseln.c +++ b/src/pdiskseln.c @@ -278,7 +278,21 @@ int do_curses_photorec(struct ph_param *params, struct ph_options *options, cons #endif ) { - /* yes */ +#ifdef HAVE_NCURSES + { + va_list ap; + int res; + WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */ + aff_copy(window); + mvwaddstr(window,5,0,"Resuming the recovery. Please wait..."); + wrefresh(window); + delwin(window); + (void) clearok(stdscr, TRUE); +#ifdef HAVE_TOUCHWIN + touchwin(stdscr); +#endif + } +#endif params->cmd_run=saved_cmd; params->cmd_device=saved_device; }