Closed arkoort closed 3 years ago
Agreed; this would be a good candidate for a PR.
neuron uses the co-log
library; so perhaps try to figure out how other co-log users achieve this in an idiomatic way.
https://github.com/srid/neuron/blob/master/neuron/src/app/Neuron/CLI/Logging.hs
EDIT: I suppose it would be sufficient to pass a flag to mkLogAction
above, to allow / disable colors.
Hey, please check out my PR that fixes the issue.
When neuron-mode uses neuron executable for generating HTML, its output in the
*compilation*
buffer look like:If I understand right, System.Console.ANSI has function
hSupportsANSI
, which can determine this situation. Maybe it would be better not to use colors if this function returns False.