Skip to content

Commit 21cdbd2

Browse files
committed
Add tty qr support on Linux.
1 parent b606a37 commit 21cdbd2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wxbot.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ def gen_qr_code(self, qr_file_path):
7373
if self.conf['qr'] == 'png':
7474
qr.png(qr_file_path)
7575
elif self.conf['qr'] == 'tty':
76-
print 'Not support tty'
77-
pass
78-
#qr.print_tty()
79-
76+
print(qr.terminal(quiet_zone=1))
77+
8078
def wait4login(self, tip):
8179
time.sleep(tip)
8280
url = 'https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?tip=%s&uuid=%s&_=%s' % (tip, self.uuid, int(time.time()))

0 commit comments

Comments
 (0)