mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
correct display of public msgs
This commit is contained in:
parent
4c78695b61
commit
15d1720da0
2 changed files with 4 additions and 3 deletions
|
|
@ -102,10 +102,11 @@ async def process_event_message(mc, ev, json_output, end="\n", above=False):
|
|||
print(disp)
|
||||
elif (data['type'] == "CHAN") :
|
||||
path_str = f"{ANSI_YELLOW}({path_str}){ANSI_END}"
|
||||
disp = f"{ANSI_GREEN}ch{data['channel_idx']}{path_str}: {data['text']}"
|
||||
if above:
|
||||
print_above(f"{ANSI_GREEN}ch{data['channel_idx']}({path_str}): {data['text']}")
|
||||
print_above(disp)
|
||||
else:
|
||||
print(f"ch{data['channel_idx']}({path_str}): {data['text']}")
|
||||
print(disp)
|
||||
else:
|
||||
print(json.dumps(ev.payload))
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue