Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#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: UI/UX:

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

Change History (2)

comment:1 Changed 5 years ago by ramiro

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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.

comment:2 Changed 4 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top