Use print_ascii to make it work in powershell

qr.print_tty() doesn't work on windows, but qr.print_ascii() does.

May look a bit less formatted, but can still be scanned
pull/7/head
Jeroen Lodder 2 years ago committed by Roland Kurmann
parent 1377f032b9
commit 5dc155f556

@ -78,7 +78,7 @@ def save_qr(data, name):
def print_qr(data):
qr = QRCode()
qr.add_data(data)
qr.print_tty()
qr.print_ascii()
i = j = 0
for line in (line.strip() for line in fileinput.input(args.infile)):

Loading…
Cancel
Save