Sujan Shah
Sujan Shah

Reputation: 1

doit command color output issue

I am using doit tool for build. Currently the issue I am facing is related to color output meaning when I call doit the output will start with color but end up without color. However, when I run call it second time I will get colored output at the end without any issue. Could someone assist? Is this related to a specific version of doit or some changes in confurations of dodo.py?

Regards

Upvotes: 0

Views: 189

Answers (2)

Bite code
Bite code

Reputation: 597203

Using doit.tools.Interactive will preserve coloring.

Upvotes: 0

schettino72
schettino72

Reputation: 3170

Programs usually try to detect if the output is a terminal or not and automatically turn-off color based on the result.

Usually the check is based on isatty() or fileno(). doit 0.35 will have improved support on controlling this.

Upvotes: 0

Related Questions