diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-09-17 14:25:41 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-09-17 14:25:41 +0200 |
commit | aad0ceb1544a9c3daf9c70db7575503529a7a928 (patch) | |
tree | 75103a4ea2b2382667b9f9a582a164e414e8f11b | |
parent | 37914e0228536457bb40dfdd30e4a5f589b8ba7a (diff) | |
download | bbs-aad0ceb1544a9c3daf9c70db7575503529a7a928.tar.gz |
added bbs.sh
-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 |