diff options
-rwxr-xr-x | bbs.sh | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +PICDIR=~/pics + +echo Your screen width? +read width + +while true +do + read -p " > " input + case $input in + [qQ]*) exit;; + *);; + esac + + files=($PICDIR/*) + FILE=${files[RANDOM % ${#files[@]}]} + magick convert $FILE -depth 24 bmp:- | asciimap -wic -s $width +done |