From 3952e4b1f89ff3bbfbe68a101fb31352315f131a Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 23 Mar 2026 19:01:41 -0400 Subject: [PATCH] better handling of emojis display in channel_echoes --- flake.nix | 4 ++-- pyproject.toml | 2 +- src/meshcore_cli/meshcore_cli.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 27d3610..bc0b296 100644 --- a/flake.nix +++ b/flake.nix @@ -17,12 +17,12 @@ meshcore = python3Packages.buildPythonPackage rec { pname = "meshcore"; - version = "2.3.0"; + version = "2.3.2"; pyproject = true; src = python3Packages.fetchPypi { inherit pname version; - sha256 = "sha256-7Vo1l2qnh04pD8urIZjC5onws1aCULYK7FLmueO9K3s="; + sha256 = "sha256-mM64woqKvltbd/CUGzD5m6PU/CNQ923pm2yKTneNrW8="; }; build-system = [ python3Packages.hatchling ]; diff --git a/pyproject.toml b/pyproject.toml index 32ed9a7..2a82c29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore-cli" -version = "1.5.1" +version = "1.5.2" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, ] diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index 76ca180..c25e6ce 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -35,7 +35,7 @@ import re from meshcore import MeshCore, EventType, logger # Version -VERSION = "v1.5.2" +VERSION = "v1.5.3" # default ble address is stored in a config file MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/" @@ -254,7 +254,7 @@ async def handle_log_rx(event): width = os.get_terminal_size().columns cars = width - 13 - len(event.payload["path"]) - len(chan_name) - 1 dispmsg = message.replace("\n","")[0:cars] - txt = f"{ANSI_LIGHT_GRAY}{chan_name} {ANSI_DGREEN}{dispmsg+(cars-len(dispmsg))*' '} {ANSI_YELLOW}[{event.payload['path']}]{ANSI_LIGHT_GRAY}{event.payload['snr']:6,.2f}{event.payload['rssi']:4}{ANSI_END}" + txt = f"{ANSI_LIGHT_GRAY}{chan_name} {ANSI_DGREEN}{dispmsg+(cars-len(dispmsg))*' '} {ANSI_START}{width-11-len(event.payload["path"])}G{ANSI_YELLOW}[{event.payload['path']}]{ANSI_LIGHT_GRAY}{event.payload['snr']:6,.2f}{event.payload['rssi']:4}{ANSI_END}" if handle_message.above: print_above(txt)