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