set -euo pipefail; export TERM="${TERM:-linux}"; # Fix term var if launched without term if [ "$TERM" = "dumb" -o "$TERM" = "unknown" ]; then export TERM=linux; fi tput civis; # Hide cursor function read_key() { read -n 1 -s "$@"; } function setup_failed() { cat <