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"