From 35ac6970afe2f0a338a9fca59f4c50bcddb19183 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 1 Aug 2017 22:17:48 +0100 Subject: [PATCH] Restore original stty settings --- git-recall | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-recall b/git-recall index 5a9cc3e..6c04b88 100644 --- a/git-recall +++ b/git-recall @@ -263,9 +263,13 @@ cleanup_and_exit() tput cnorm # unhide cursor echo "$NORMAL" # normal colors + stty "$orig_stty" > /dev/null 2>&1 exit } +# Store original terminal settings +orig_stty=$(stty -g) + # Catch a control-C interrupt and perform cleanup operations before exiting trap cleanup_and_exit INT