Formatting

This commit is contained in:
Carlos Sanchez 2023-05-01 13:13:45 -04:00
parent 61362663a1
commit 66795a7ed9

View File

@ -131,6 +131,7 @@ def ws_onopen(ws):
ws.pause_output = True # Disable output for the duration of input handling
if key == "h":
print(" -- Help menu / Controls --")
for key, value in commands.items():
print(" " + Style.BRIGHT + key + Style.NORMAL + " - " + value)
elif key == "s":
@ -158,6 +159,8 @@ def ws_onopen(ws):
print("Quitting (may take a bit for the websocket to close)")
ws.close()
break
elif key == " ":
printstatus = True
# create a thread to run the blocking task
thread = threading.Thread(target=main_loop)