1
0

hw plugins: cmdline: support numpad for trezor one PIN codes

This commit is contained in:
SomberNight
2024-10-10 21:10:07 +00:00
parent af18df10f6
commit ef62fcdd2f

View File

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