Change default ascii height to 5 less than terminal height

This commit is contained in:
BBaoVanC 2020-12-27 17:20:14 -06:00
parent 82ce6a4c92
commit 31d5e7ab07
No known key found for this signature in database
GPG key ID: 18089E4E3CCF1D3A

View file

@ -20,7 +20,7 @@ case "$1" in
;;
esac
height=${2:-75}
height=${2:-$(($(tput lines) - 5))}
echo "Using height $height"
url=$(curl -fsSL "$imgurl" | jq -r ".url")