File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
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
1516
1617from meshcore import TCPConnection , BLEConnection , SerialConnection
1718from meshcore import MeshCore , EventType , logger
@@ -200,9 +201,9 @@ async def interactive_loop(mc, to=None) :
200201 while True :
201202 prompt = ""
202203 if not last_ack :
203- prompt = prompt + f"! "
204- prompt = prompt + f"{ contact ['adv_name' ]} > "
205- line = await session .prompt_async (prompt , complete_while_typing = False )
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 )
206207
207208 if line == "" : # blank line
208209 pass
You can’t perform that action at this time.
0 commit comments