mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 03:18:09 +00:00
Removed all outputs to stdout, uses stderr instead
This commit is contained in:
parent
8ea46f34a2
commit
9b9f0e9415
@ -141,7 +141,7 @@ class TextUIMixin(object):
|
|||||||
super(TextUIMixin, self).__init__(*args, **kwargs)
|
super(TextUIMixin, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
def callback_ButtonRequest(self, msg):
|
def callback_ButtonRequest(self, msg):
|
||||||
log("Sending ButtonAck for %s " % get_buttonrequest_value(msg.code))
|
# log("Sending ButtonAck for %s " % get_buttonrequest_value(msg.code))
|
||||||
return proto.ButtonAck()
|
return proto.ButtonAck()
|
||||||
|
|
||||||
def callback_PinMatrixRequest(self, msg):
|
def callback_PinMatrixRequest(self, msg):
|
||||||
@ -153,17 +153,21 @@ class TextUIMixin(object):
|
|||||||
desc = 'new PIN again'
|
desc = 'new PIN again'
|
||||||
else:
|
else:
|
||||||
desc = 'PIN'
|
desc = 'PIN'
|
||||||
pin = raw_input("Please enter %s: " % desc)
|
|
||||||
|
log("Please enter %s: " % desc)
|
||||||
|
pin = raw_input()
|
||||||
return proto.PinMatrixAck(pin=pin)
|
return proto.PinMatrixAck(pin=pin)
|
||||||
|
|
||||||
def callback_PassphraseRequest(self, msg):
|
def callback_PassphraseRequest(self, msg):
|
||||||
passphrase = raw_input("Passphrase required: ")
|
log("Passphrase required: ")
|
||||||
|
passphrase = raw_input()
|
||||||
passphrase = unicode(str(bytearray(passphrase, 'utf-8')), 'utf-8')
|
passphrase = unicode(str(bytearray(passphrase, 'utf-8')), 'utf-8')
|
||||||
|
|
||||||
return proto.PassphraseAck(passphrase=passphrase)
|
return proto.PassphraseAck(passphrase=passphrase)
|
||||||
|
|
||||||
def callback_WordRequest(self, msg):
|
def callback_WordRequest(self, msg):
|
||||||
word = raw_input("Enter one word of mnemonic: ")
|
log("Enter one word of mnemonic: ")
|
||||||
|
word = raw_input()
|
||||||
return proto.WordAck(word=word)
|
return proto.WordAck(word=word)
|
||||||
|
|
||||||
class DebugLinkMixin(object):
|
class DebugLinkMixin(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user