#12272 closed (invalid)
django.core.management.color.py sucks?
Reported by: | pedromagnus | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.1 |
Severity: | Keywords: | color django-extensions extensions core show_urls | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm trying to see some colors in my win console (with cygwin and econsole) and I can't do it. I'm currently working using the django extensions, specifically 'show_urls' and instead of colors it show the color-code (I suppose) and the text without any indentation.
It uses (to colorize and formatting) django.core.management.color.py.
Looking the code of color.py it seems that the only thing it checks is if the SO is win32, from that automatically assumes that there is no color in the console and returns FALSE. I'm right on this?? If I am, then this code really sucks, it has to be updated anyway.
Regards.
Pedro
Short answer: No, it doesn't.
Long answer: If you want different behavior then research, code a solution to show color in a win32 console and submit a patch. Patches are welcome, mean language isn't.