PhotoRec: Make "Continue previous session" give output after receiving Y

Close https://github.com/cgsecurity/testdisk/issues/35
This commit is contained in:
Christophe Grenier 2017-11-25 14:31:54 +01:00
parent 1b78f38745
commit a90561d374
2 changed files with 16 additions and 2 deletions

View file

@ -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)

View file

@ -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;
}