aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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