restore default text color on 'Ctrl-C' exit
The terminal text color wasn't reset when the user aborted the wizard while being prompted for input. This resolves https://github.com/LukeSmithxyz/mutt-wizard/issues/224
This commit is contained in:
parent
9cc2955424
commit
e4813ae215
2
bin/mw
2
bin/mw
@ -313,6 +313,8 @@ synchronize_flags=true
|
|||||||
gpg_path=$GPG"
|
gpg_path=$GPG"
|
||||||
echo "$nmbasic" > "$NOTMUCH_CONFIG" ;}
|
echo "$nmbasic" > "$NOTMUCH_CONFIG" ;}
|
||||||
|
|
||||||
|
trap 'echo -e "\033[0m\n"' INT
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
ls) list ;;
|
ls) list ;;
|
||||||
add) asktype && askinfo && tryconnect && finalize || delete ;;
|
add) asktype && askinfo && tryconnect && finalize || delete ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user