Skip to content

Commit a6f3771

Browse files
authored
calculate terminal size for header_info (#879)
1 parent 7261aff commit a6f3771

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

misc/build.func

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ header_info() {
169169
return 1
170170
fi
171171

172-
ascii_art=$(figlet -f slant "$APP")
172+
term_width=$(tput cols)
173+
ascii_art=$(figlet -f slant -w "$term_width" "$APP")
173174
clear
174175
cat <<EOF
175176
$ascii_art

0 commit comments

Comments
 (0)