Skip to content

Commit fd5fe99

Browse files
committed
Update color for cross-platform compatibility
1 parent 50b2b1d commit fd5fe99

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

clibot/colors.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
LIGHT_BLUE = "\033[94m"
2-
LIGHT_CYAN = "\033[96m"
3-
LIGHT_GREEN = "\033[92m"
4-
LIGHT_WHITE = "\033[97m"
5-
LIGHT_YELLOW = "\033[93m"
6-
LIGHT_RED = "\033[91m"
7-
COLOR_RESET = "\033[0m"
1+
from colorama import Fore, Style, init
2+
3+
# Initialize colorama
4+
init(autoreset=True)
5+
6+
LIGHT_BLUE = Fore.LIGHTBLUE_EX
7+
LIGHT_CYAN = Fore.LIGHTCYAN_EX
8+
LIGHT_GREEN = Fore.LIGHTGREEN_EX
9+
LIGHT_WHITE = Fore.LIGHTWHITE_EX
10+
LIGHT_YELLOW = Fore.LIGHTYELLOW_EX
11+
LIGHT_RED = Fore.LIGHTRED_EX
12+
COLOR_RESET = Style.RESET_ALL

0 commit comments

Comments
 (0)