Then I saw it was unnecessary, qrencode provides ANSI support.
echo foobar |qrencode -tANSI -o- #grey, blech
echo foobar |qrencode -tANSI -o- | sed -e "s/\[47m/\[0\;5\;37\;47m/g" -e "s/\[40m/\[0\;34\;40m/g"
echo foobar |qrencode -tANSI256 -o- # pretty, yay
echo foobar |qrencode -tANSI256 -o-|sed -e "s/ / /g;p"
Then I saw it was unnecessary, qrencode provides ANSI support.
So I threw some sed at it: But then I looked again, and qrencode provides this to you too: You can double the output size with: Very pleasing! Might actually use qr codes now.