tartley / colorama

Simple cross-platform colored terminal text in Python
BSD 3-Clause "New" or "Revised" License
3.51k stars 249 forks source link

Fore.RESET is resetting style #374

Open Shardj opened 1 year ago

Shardj commented 1 year ago

print(f"{Style.BRIGHT}{Fore.RED}I should be bright and red.{Fore.RESET} I should be the default foreground colour and still bright, but I'm not bright.")

Fore.RESET behaviour is currently identical to Style.RESET_ALL behaviour

I'm currently just dropping Fore.RESET = "\033[39m" after every from colorama import Fore, Style to fix this as 39m is the correct code to only reset the colour and not reset the style.