Skip to content

Commit 15d1720

Browse files
committed
correct display of public msgs
1 parent 4c78695 commit 15d1720

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "meshcore-cli"
7-
version = "0.6.3"
7+
version = "0.6.4"
88
authors = [
99
{ name="Florent de Lamotte", email="[email protected]" },
1010
]

src/meshcore_cli/meshcore_cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ async def process_event_message(mc, ev, json_output, end="\n", above=False):
102102
print(disp)
103103
elif (data['type'] == "CHAN") :
104104
path_str = f"{ANSI_YELLOW}({path_str}){ANSI_END}"
105+
disp = f"{ANSI_GREEN}ch{data['channel_idx']}{path_str}: {data['text']}"
105106
if above:
106-
print_above(f"{ANSI_GREEN}ch{data['channel_idx']}({path_str}): {data['text']}")
107+
print_above(disp)
107108
else:
108-
print(f"ch{data['channel_idx']}({path_str}): {data['text']}")
109+
print(disp)
109110
else:
110111
print(json.dumps(ev.payload))
111112
return True

0 commit comments

Comments
 (0)