@@ -217,12 +217,17 @@ _run_module() {
218# Tell the user if their executable isn't named "bat".
218# Tell the user if their executable isn't named "bat".
219if [[ "$BAT" != "bat" ]] && [[ "$1" != '-y' ]]; then
219if [[ "$BAT" != "bat" ]] && [[ "$1" != '-y' ]]; then
220+ trap '_tput rmcup; exit 1' INT
220 _tput setaf 1
224 _tput setaf 1
221 printf "The %s executable on your system is named '%s'.\n%s\n" "bat" "$BAT" \
225 printf "The %s executable on your system is named '%s'.\n%s\n" "bat" "$BAT" \
222 "If your issue is related to installation, please check that this isn't the issue."
226 "If your issue is related to installation, please check that this isn't the issue."
223 _tput sgr0
227 _tput sgr0
224 printf "Press any key to continue...\n"
228 printf "Press any key to continue...\n"
225 read -rsn1
229 read -rsn1
228# Ask for consent.
233# Ask for consent.