Trap SIGINT: fixes #3

This commit is contained in:
Case Duckworth 2021-02-25 17:01:10 -06:00
parent 7c980e88cd
commit 3b5b177922
1 changed files with 3 additions and 0 deletions

3
bollux
View File

@ -25,6 +25,7 @@ END
}
run() { # run COMMAND...
trap bollux_quit SIGINT
log debug "$*"
"$@"
}
@ -151,6 +152,8 @@ bollux_quit() {
printf '\e[1m%s\e[0m:\t\e[3m%s\e[0m\n' "$PRGN" "$BOLLUX_BYEMSG"
exit
}
# trap C-c
trap bollux_quit SIGINT
# set the terminal title
set_title() { # set_title STRING