From 3b5b17792231ae923d3029f6d82e5a2937d1f2de Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 25 Feb 2021 17:01:10 -0600 Subject: Trap SIGINT: fixes #3 --- bollux | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bollux b/bollux index db47e9d..51ca597 100755 --- a/bollux +++ b/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 -- cgit 1.4.1-21-gabe81