Colors are lost in the output of tasks
asheehan opened this issue · comments
Thanks for the great tool!
I'm running "mix test" (and mix test --cover) in my tasks and when the output is displayed, it has lost the colors that mix test usually shows. Is there any way to re-enable this?
Hi Thanks. I'm sure there is. But will need to research it a bit. 👍
It's worth nothing that this does not happen always. For example, I've configured eye_drops to run mix espec
and mix credo
. Espec outputs color, while credo does not.
When piping espec (mix espec | less
) I see the broken ASCII color codes, but that does not happen with mix test
and mix credo
.
I remember this happening in some other context: the command being run detects being piped and skips the coloring. I think the solution was running the command with some flag that allowed to keep the coloring.
I don't see credo having this option though. May this is a credo issue?
I've not had time to look into this. But thank you for your feedback.
I'm happy for anyone to take this on. 👍