mirror of
https://github.com/Fakerr/git-recall.git
synced 2026-09-10 07:26:42 -04:00
Restore original stty settings
This commit is contained in:
parent
a6fce2c863
commit
35ac6970af
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue