aboutsummaryrefslogtreecommitdiff
path: root/bbs.sh
blob: e00eac553b505221d15f5ee5a1318ca0b2800440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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