Trap SIGINT: fixes #3
This commit is contained in:
parent
7c980e88cd
commit
3b5b177922
3
bollux
3
bollux
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue