]> git.sur5r.net Git - bacula/bacula/commitdiff
If using readline reset terminal at bconsole exit
authorKern Sibbald <kern@sibbald.com>
Sun, 11 Sep 2016 05:43:53 +0000 (07:43 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 11 Sep 2016 05:43:53 +0000 (07:43 +0200)
bacula/src/console/console.c

index e1862b83f058423a5638112b18c864000ad48f7f..40a1dd4382b9dd57178946afe3b672f8df8c4cce 100644 (file)
@@ -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();