File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " meshcore-cli"
7- version = " 0.6.6 "
7+ version = " 0.6.7 "
88authors = [
99 {
name =
" Florent de Lamotte" ,
email =
" [email protected] " },
1010]
Original file line number Diff line number Diff line change 3333
3434# Ansi colors
3535ANSI_END = "\033 [0m"
36+ ANSI_INVERT = "\033 [7m"
37+ ANSI_NORMAL = "\033 [27m"
3638ANSI_GREEN = "\033 [0;32m"
3739ANSI_BGREEN = "\033 [1;32m"
3840ANSI_BLUE = "\033 [0;34m"
@@ -257,17 +259,17 @@ def _(event):
257259
258260 last_ack = True
259261 while True :
260- prompt = " "
262+ prompt = f" { ANSI_INVERT } "
261263 if not last_ack :
262264 prompt = prompt + f"{ ANSI_RED } !"
263265
264266 if contact ["type" ] == 3 : # room server
265- prompt = prompt + f"{ ANSI_CYAN } "
267+ prompt = prompt + f"{ ANSI_BCYAN } "
266268 elif contact ["type" ] == 2 :
267- prompt = prompt + f"{ ANSI_MAGENTA } "
269+ prompt = prompt + f"{ ANSI_BMAGENTA } "
268270 else :
269- prompt = prompt + f"{ ANSI_BLUE } "
270- prompt = prompt + f"{ contact ['adv_name' ]} > { ANSI_END } "
271+ prompt = prompt + f"{ ANSI_BBLUE } "
272+ prompt = prompt + f"{ ANSI_INVERT } { contact ['adv_name' ]} { ANSI_NORMAL } { ANSI_END } "
271273
272274 if not process_event_message .color :
273275 prompt = escape_ansi (prompt )
You can’t perform that action at this time.
0 commit comments