tartley / colorama

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

init(autoreset=True) is disabling colors and Fore.WHITE is grey #310

Open h4knet opened 3 years ago

h4knet commented 3 years ago

Hello,

I've search for people getting the same errors has me, but I didn't find any related issues. I'm using PyCharm 2021.1.3 (latest) on Windows 10 and when I use the init() command with autoreset=True, there is no color at all.

from colorama import Fore, Style, init
init(autoreset=True)

The second issue, I ran into, is that Fore.WHITEactually renders as grey: image

The other lines are using regular print() Here is the code: print(Fore.WHITE, "AAAAAAAAAAAAAA", Style.RESET_ALL, sep='')

The behavior is the same with and without the init() command.

wallpaper64 commented 2 years ago

in order for the white color to be displayed normally, use the Back.LIGHTWHITE_EX command instead of BACK.WHITE