summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKr1ss <kr1ss.x@yandex.com>2019-05-28 01:09:25 +0200
committerKr1ss <kr1ss.x@yandex.com>2019-05-28 01:09:25 +0200
commite4813ae21568132e2dd04f0d69e87c4dfd98c3c6 (patch)
treeb499758640e4a6ee962ca8aebe3c84c5a1e60013 /bin
parent9cc29554241af944606d9c236c85f0ce4a73c962 (diff)
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
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mw2
1 files changed, 2 insertions, 0 deletions
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 ;;