From fb849f8b72668f02abbbf31b3f1fcf009ed17e06 Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 13 Nov 2025 19:57:38 +0100 Subject: [PATCH] channel_echoes: handle multiline messages --- src/meshcore_cli/meshcore_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index d19e9d6..d0a0e6b 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -285,7 +285,7 @@ async def handle_log_rx(event): if chan_name != "" : width = os.get_terminal_size().columns cars = width - 13 - 2 * path_len - len(chan_name) - 1 - dispmsg = message[0:cars] + dispmsg = message.replace("\n","")[0:cars] txt = f"{ANSI_LIGHT_GRAY}{chan_name} {ANSI_DGREEN}{dispmsg+(cars-len(dispmsg))*' '} {ANSI_YELLOW}[{path}]{ANSI_LIGHT_GRAY}{event.payload['snr']:6,.2f}{event.payload['rssi']:4}{ANSI_END}" if handle_message.above: print_above(txt)