From 5dc155f55618d96f8a042f678cebcd2c0ad310ba Mon Sep 17 00:00:00 2001 From: Jeroen Lodder Date: Wed, 29 Dec 2021 21:30:58 +0100 Subject: [PATCH] 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 --- extract_otp_secret_keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract_otp_secret_keys.py b/extract_otp_secret_keys.py index 8dc8d89..1a6f62a 100644 --- a/extract_otp_secret_keys.py +++ b/extract_otp_secret_keys.py @@ -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)):