From 193cb546f43c881fdc5c9f868adf6de7590201aa Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Fri, 14 Feb 2025 13:30:44 +0100 Subject: [PATCH] Added slight change to fix some Windows JSON formatting. --- meshbook.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meshbook.py b/meshbook.py index 2e70d0c..f22e536 100644 --- a/meshbook.py +++ b/meshbook.py @@ -31,12 +31,12 @@ class text_color: italic = "\x1B[3m" reset = "\x1B[0m" -def console(message: str, required: bool=False): +def console(message: str, final: bool=False): ''' Helper function for terminal output, with a couple variables for the silent flag. Also clears terminal color each time. ''' - if required: - print(message + text_color.reset) + if final: + print(message) # Assuming final message, there is no need for clearing. elif not args.silent: print(message + text_color.reset)