From a3309b8079fdd7912febbc12454585d27ddcd1cd Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 11 Sep 2016 07:43:53 +0200 Subject: [PATCH] If using readline reset terminal at bconsole exit --- bacula/src/console/console.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/console/console.c b/bacula/src/console/console.c index e1862b83f0..40a1dd4382 100644 --- a/bacula/src/console/console.c +++ b/bacula/src/console/console.c @@ -1289,6 +1289,9 @@ static void terminate_console(int sig) if (!no_conio) { con_term(); } +#ifdef HAVE_READLINE + rl_restore_state(NULL); +#endif (void)WSACleanup(); /* Cleanup Windows sockets */ lmgr_cleanup_main(); -- 2.39.5