From: Kern Sibbald Date: Sun, 11 Sep 2016 05:43:53 +0000 (+0200) Subject: If using readline reset terminal at bconsole exit X-Git-Tag: Release-7.4.4~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a3309b8079fdd7912febbc12454585d27ddcd1cd;p=bacula%2Fbacula If using readline reset terminal at bconsole exit --- 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();