From e4813ae21568132e2dd04f0d69e87c4dfd98c3c6 Mon Sep 17 00:00:00 2001 From: Kr1ss Date: Tue, 28 May 2019 01:09:25 +0200 Subject: [PATCH] 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 --- bin/mw | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/mw b/bin/mw index b693299..f8c4f24 100755 --- a/bin/mw +++ b/bin/mw @@ -313,6 +313,8 @@ synchronize_flags=true gpg_path=$GPG" echo "$nmbasic" > "$NOTMUCH_CONFIG" ;} +trap 'echo -e "\033[0m\n"' INT + case "$1" in ls) list ;; add) asktype && askinfo && tryconnect && finalize || delete ;;