aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-09-17 14:25:41 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-09-17 14:25:41 +0200
commitaad0ceb1544a9c3daf9c70db7575503529a7a928 (patch)
tree75103a4ea2b2382667b9f9a582a164e414e8f11b
parent37914e0228536457bb40dfdd30e4a5f589b8ba7a (diff)
downloadbbs-aad0ceb1544a9c3daf9c70db7575503529a7a928.tar.gz
added bbs.sh
-rwxr-xr-xbbs.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/bbs.sh b/bbs.sh
new file mode 100755
index 0000000..e00eac5
--- /dev/null
+++ b/bbs.sh
@@ -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