From 8de4797b3004fd5251bc995b85ab6c57e0d1f1dc Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 7 Nov 2024 22:10:46 +0100 Subject: [PATCH] more colors --- client/pyscripts/fm11rf08_full.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/pyscripts/fm11rf08_full.py b/client/pyscripts/fm11rf08_full.py index 733782c31..ffa20c549 100644 --- a/client/pyscripts/fm11rf08_full.py +++ b/client/pyscripts/fm11rf08_full.py @@ -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: