Added slight change to fix some Windows JSON formatting.
Merge pull request #6 from DaanSelen/dev
This commit is contained in:
+3
-3
@@ -31,12 +31,12 @@ class text_color:
|
|||||||
italic = "\x1B[3m"
|
italic = "\x1B[3m"
|
||||||
reset = "\x1B[0m"
|
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.
|
Helper function for terminal output, with a couple variables for the silent flag. Also clears terminal color each time.
|
||||||
'''
|
'''
|
||||||
if required:
|
if final:
|
||||||
print(message + text_color.reset)
|
print(message) # Assuming final message, there is no need for clearing.
|
||||||
elif not args.silent:
|
elif not args.silent:
|
||||||
print(message + text_color.reset)
|
print(message + text_color.reset)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user