File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1212from prompt_toolkit .shortcuts import CompleteStyle
1313from prompt_toolkit .completion import NestedCompleter
1414from prompt_toolkit .history import FileHistory
15- from prompt_toolkit .formatted_text import HTML
15+ from prompt_toolkit .formatted_text import ANSI
1616
1717from meshcore import TCPConnection , BLEConnection , SerialConnection
1818from meshcore import MeshCore , EventType , logger
@@ -201,9 +201,9 @@ async def interactive_loop(mc, to=None) :
201201 while True :
202202 prompt = ""
203203 if not last_ack :
204- prompt = prompt + f"<ansired>!</ansired> "
205- prompt = prompt + f"<ansiblue> { contact ['adv_name' ]} ></ansiblue> "
206- line = await session .prompt_async (HTML (prompt ), complete_while_typing = False )
204+ prompt = prompt + f"{ ANSI_RED } ! "
205+ prompt = prompt + f"{ ANSI_BLUE } { contact ['adv_name' ]} >{ ANSI_END } "
206+ line = await session .prompt_async (ANSI (prompt ), complete_while_typing = False )
207207
208208 if line == "" : # blank line
209209 pass
You can’t perform that action at this time.
0 commit comments