From aad0ceb1544a9c3daf9c70db7575503529a7a928 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 17 Sep 2019 14:25:41 +0200 Subject: added bbs.sh --- bbs.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bbs.sh (limited to 'bbs.sh') 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 -- cgit v1.2.3