From 66795a7ed9da6de6ac4dd4ed62fd397f6460f69b Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Mon, 1 May 2023 13:13:45 -0400 Subject: [PATCH] Formatting --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 15042d0..64d8573 100644 --- a/main.py +++ b/main.py @@ -131,8 +131,9 @@ 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) + print(" " + Style.BRIGHT + key + Style.NORMAL + " - " + value) elif key == "s": search(ws) printstatus = True @@ -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)