From 9e6efeb5c6154942cdedfb0163ff68d85a89c586 Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 8 Mar 2026 14:19:21 -0400 Subject: [PATCH] manage emojis in names in lc --- src/meshcore_cli/meshcore_cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index 42b9ca6..1470673 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -85,6 +85,8 @@ ANSI_BORANGE="\033[1;38;5;214m" ANSI_YELLOW = "\033[0;33m" ANSI_BYELLOW = "\033[1;33m" +ANSI_START = "\033[" + #Unicode chars # some possible symbols for prompts 🭬🬛🬗🭬🬛🬃🬗🭬🬛🬃🬗🬏🭀🭋🭨🮋 ARROW_HEAD = "" @@ -3176,7 +3178,10 @@ async def next_cmd(mc, cmds, json_output=False): for i in range(1,plen): path_str = path_str + "," + path_str_in[i*phs*2:(i+1)*2*phs] #path_str = f"{c[1]['out_path']}:{c[1]['out_path_hash_mode']}" - print(f"{c[1]['adv_name']:30} {CONTACT_TYPENAMES[c[1]['type']]:4} {c[1]['public_key'][:12]}  {path_str}") + print(f"{c[1]['adv_name']:30} ", end="", flush=True) + print(f"{ANSI_START}34G", end="", flush=True) + print(f"{CONTACT_TYPENAMES[c[1]['type']]:4} ", end="", flush=True) + print(f"{c[1]['public_key'][:12]}  {path_str}") print(f"> {len(mc.contacts)} contacts in device") case "reload_contacts" | "rc":