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/6/head
Jeroen Lodder 2 years ago committed by GitHub
parent 1377f032b9
commit d520491c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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