more colors

This commit is contained in:
Philippe Teuwen 2024-11-07 22:10:46 +01:00
parent 96675f41a1
commit 8de4797b30

View file

@ -241,10 +241,12 @@ globals:
if " | " in line and "# | s" not in line:
blk0 = line[10:56+1]
if res == 0:
lprint(" - success", prompt='')
s = color('ok', fg='green')
lprint(f" ( {s} )", prompt='')
bdkey = k
break
lprint(f" - fail [{res}]", prompt='')
s = color('fail', fg='yellow')
lprint(f" ( {s} ) [{res}]", prompt='')
if bdkey == "":
lprint("\n Unknown key, or card not detected.", prompt='[!]')
@ -474,7 +476,7 @@ globals:
rv = False, mad, key
else:
lprint("All keys verified OK")
lprint("All keys verified")
rv = True, mad, key
if mad is True: