-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot modify default colours #52
Comments
huh. I cant reproduce on linux with with this appears related to windows. my guess is the problem lies with translation of ANSI escape character sequences by colorama (https://github.com/tartley/colorama) (the ANSI escape codes are inserted by pygments, https://github.com/pygments/pygments) I dont have a windows machine to test on. can you dig further and verify if it is indeed colorama that is failing to translate the ANSI escape codes properly on windows somehow? |
I don't really know much about This is what I get in Pycharm: https://imgur.com/a/nkxtdyJ When there's a lot of statements, makes it hard for me look for key stuff and its still the same output even after changing Edit: added screenshot of ic in terminal. |
for future intrepid explorers of this ticket, as a workaround until this issue is resolved you can disable coloring by setting the import sys
from icecream import ic
ic.configureOutput(outputFunction=lambda *a: print(*a, file=sys.stderr)) this bypasses icecream's coloring functionality |
I'm here with the same problem using Win10 /Windows Terminal /PS Shell. The ic background comes out gray and is very hard to read. The above workaround does work. But the ic coloring is really nice to easily distinguish ic output vs. other output text. A real fix is not a high-prio, but would definitely be nice. |
I created a PR to add an disableColoring and enableColoring method to handle this. |
Hi,
I tried changing the default colours in
coloring.py
specifically,BASE0
andBASE03
after cloning the repo and runningpip install -e ./
in the directory withsetup.py
as stated here, to install my edited version in developer mode. But it seems this has no effect at all even after many tries and restarting both IDE(Pycharm v2020.3, python 3.8.5) and computer(win10). I don't know if I'm missing something here.I've been using icecream for a while but the default colours make it difficult for me to make out text in dark mode with Pycharm and I specifically want to change the
normal text
andwhitespace
colours since those affect me the most. Thanks.The text was updated successfully, but these errors were encountered: