add parameter "ascii-len"

This commit is contained in:
Toby Prime 2022-12-19 20:38:20 +08:00 committed by GitHub
parent ccd5d9f526
commit 3f60a10caa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4083,6 +4083,10 @@ print_ascii() {
return
}
if [[ $custom_ascii_len -gt 0 ]];then
ascii_len="$custom_ascii_len"
fi
# Colors.
ascii_data="${ascii_data//\$\{c1\}/$c1}"
ascii_data="${ascii_data//\$\{c2\}/$c2}"
@ -5367,6 +5371,8 @@ get_args() {
esac
;;
"--ascii-len") custom_ascii_len="$2";;
# Image options
"--loop") image_loop="on" ;;
"--image_size" | "--size") image_size="$2" ;;