summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parent1b78f387452e1abcd4cbd64b7dfbd4777e67c79d (diff)
PhotoRec: Make "Continue previous session" give output after receiving Y
Close https://github.com/cgsecurity/testdisk/issues/35
Diffstat (limited to 'src')
-rw-r--r--src/pdiskseln.c16
1 files changed, 15 insertions, 1 deletions
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;
}