nickstenning / honcho

Honcho: a python clone of Foreman. For managing Procfile-based applications.
http://pypi.python.org/pypi/honcho
MIT License
1.59k stars 145 forks source link

Preserve colored output of subcommands in honcho start #146

Closed Suor closed 8 years ago

Suor commented 9 years ago

This is my Procfile:

web: ./manage.py runserver
celery: celery -A stargeo worker -l info

Then I run honcho start output colors from both runserver (e.g. 404) and celery (warnings) are stripped. Would be nice to see that.

karlin commented 9 years ago

:+1:

nickstenning commented 8 years ago

Honcho doesn't strip colours from its output, as can be verified with this Procfile:

colour: echo '\033[31mhello world\033[0m'

These commands may well automatically strip colour if they detect their output is not a TTY. Indeed, for Django's manage.py that's documented here.

If you can force them to continue to print ANSI colour codes, Honcho will preserve them.