From 187983b34864c43003b7912fbb4b94aaa08551a6 Mon Sep 17 00:00:00 2001 From: Arctic4161 <64910295+Arctic4161@users.noreply.github.com> Date: Mon, 11 Oct 2021 16:35:10 -0500 Subject: [PATCH] Update bitanime.py Fixed issues with colorama not displaying correctly --- src/bitanime.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bitanime.py b/src/bitanime.py index 3faeeee..44480e8 100644 --- a/src/bitanime.py +++ b/src/bitanime.py @@ -8,10 +8,9 @@ from tqdm.contrib.concurrent import thread_map from bs4 import BeautifulSoup from colorama import Fore -colorama.init(autoreset=True) -OK = f"[{Fore.GREEN}+{Fore.RESET}] " -ERR = f"[{Fore.RED}-{Fore.RESET}] " -IN = f"[{Fore.LIGHTBLUE_EX}>{Fore.RESET}] " +OK = f"{Fore.RESET}[{Fore.GREEN}+{Fore.RESET}] " +ERR = f"{Fore.RESET}[{Fore.RED}-{Fore.RESET}] " +IN = f"{Fore.RESET}[{Fore.LIGHTBLUE_EX}>{Fore.RESET}] " try: ctypes.windll.kernel32.SetConsoleTitleW("BitAnime") except (AttributeError): @@ -19,6 +18,7 @@ except (AttributeError): def bitanime(): + os.system("cls") while True: print( f""" {Fore.LIGHTBLUE_EX}