mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
manage emojis in names in lc
This commit is contained in:
parent
5636505578
commit
9e6efeb5c6
1 changed files with 6 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue