mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-14 03:09:43 +00:00
calculate terminal size for header_info (#879)
This commit is contained in:
parent
7261affcc2
commit
a6f3771214
1 changed files with 2 additions and 1 deletions
|
@ -169,7 +169,8 @@ header_info() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ascii_art=$(figlet -f slant "$APP")
|
term_width=$(tput cols)
|
||||||
|
ascii_art=$(figlet -f slant -w "$term_width" "$APP")
|
||||||
clear
|
clear
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
$ascii_art
|
$ascii_art
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue