more compact traces

This commit is contained in:
Florent 2025-11-09 19:32:06 +01:00
parent efcec63711
commit 2474231cd4

View file

@ -2337,12 +2337,11 @@ async def next_cmd(mc, cmds, json_output=False):
else : else :
color = process_event_message.color color = process_event_message.color
classic = interactive_loop.classic or not color classic = interactive_loop.classic or not color
print("]",end="")
for t in ev.payload["path"]: for t in ev.payload["path"]:
if classic : if classic :
print("",end="") print("",end="")
else: else:
print(f" {ANSI_INVERT}", end="") print(f"{ANSI_INVERT}", end="")
snr = t['snr'] snr = t['snr']
if color: if color:
if snr >= 10 : if snr >= 10 :
@ -2355,13 +2354,13 @@ async def next_cmd(mc, cmds, json_output=False):
if classic : if classic :
print("",end="") print("",end="")
else : else :
print(f"{ANSI_NORMAL}{ARROW_HEAD} ",end="") print(f"{ANSI_NORMAL}{ARROW_HEAD}",end="")
if color: if color:
print(ANSI_END, end="") print(ANSI_END, end="")
if "hash" in t: if "hash" in t:
print(f"[{t['hash']}]",end="") print(f"[{t['hash']}]",end="")
else: else:
print("[") print()
case "login" | "l" : case "login" | "l" :
argnum = 2 argnum = 2