summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-11-25 14:31:54 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2017-11-25 14:31:54 +0100
commita90561d37466723905ea6725ff06b1de042bb2e7 (patch)
tree0864aa1c1fc71d379d61f1193bb3877a8f89a26e
parent1b78f387452e1abcd4cbd64b7dfbd4777e67c79d (diff)
PhotoRec: Make "Continue previous session" give output after receiving Y
Close https://github.com/cgsecurity/testdisk/issues/35
-rw-r--r--configure.ac2
-rw-r--r--src/pdiskseln.c16
2 files changed, 16 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 5ab5612..48dbff5 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 a396e49..e462996 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;
}