calculate terminal size for header_info (#879)

This commit is contained in:
CanbiZ 2024-12-17 16:07:07 +01:00 committed by GitHub
parent 7261affcc2
commit a6f3771214
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,7 +169,8 @@ header_info() {
return 1
fi
ascii_art=$(figlet -f slant "$APP")
term_width=$(tput cols)
ascii_art=$(figlet -f slant -w "$term_width" "$APP")
clear
cat <<EOF
$ascii_art