From 2474231cd47aadef37def965cbd124e520ae5e75 Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 9 Nov 2025 19:32:06 +0100 Subject: [PATCH] more compact traces --- src/meshcore_cli/meshcore_cli.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index c249371..5a48dd1 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -2337,12 +2337,11 @@ async def next_cmd(mc, cmds, json_output=False): else : color = process_event_message.color classic = interactive_loop.classic or not color - print("]",end="") for t in ev.payload["path"]: if classic : print("→",end="") else: - print(f" {ANSI_INVERT}", end="") + print(f"{ANSI_INVERT}", end="") snr = t['snr'] if color: if snr >= 10 : @@ -2355,13 +2354,13 @@ async def next_cmd(mc, cmds, json_output=False): if classic : print("→",end="") else : - print(f"{ANSI_NORMAL}{ARROW_HEAD} ",end="") + print(f"{ANSI_NORMAL}{ARROW_HEAD}",end="") if color: print(ANSI_END, end="") if "hash" in t: print(f"[{t['hash']}]",end="") else: - print("[") + print() case "login" | "l" : argnum = 2