hw plugins: cmdline: support numpad for trezor one PIN codes
This commit is contained in:
@@ -16,6 +16,7 @@ class CmdLineHandler(HardwareHandlerBase):
|
||||
|
||||
def get_pin(self, msg, *, show_strength=True):
|
||||
t = {'a':'7', 'b':'8', 'c':'9', 'd':'4', 'e':'5', 'f':'6', 'g':'1', 'h':'2', 'i':'3'}
|
||||
t.update({str(i): str(i) for i in range(1, 10)}) # sneakily also support numpad-conversion
|
||||
print_stderr(msg)
|
||||
print_stderr("a b c\nd e f\ng h i\n-----")
|
||||
o = raw_input()
|
||||
|
||||
Reference in New Issue
Block a user