Closed mattn closed 6 years ago
One of solutions is disable colors on Windows.
closing due to inactivity, but I was wondering if this happens in powershell too?
Do you remember that lile had already support cmd.exe? https://github.com/lileio/lile/pull/14
ah cool, so we're good!
So that you want to:
Which do you want?
hmm, I'm happy to support windows if that's what's no right. Is it logrus that's the issue, does logrus not work on windows?
logrus works on Windows but colors are not enabled in default.
logrus.SetOutput(colorable.NewColorableStdout())
logrus.SetFormatter(&logrus.TextFormatter{ForceColors: true})
This is a code to enable colors on Windows. lile should generate this code with lile new
.
Ah ok, but above you should bad output, is that what you mean by "colors are not enabled in default"?
Windows cmd.exe doesn't handle escape sequence. Also logrus doesn't enabled colors in default. #45 should fix this.
logrus in default output escape sequence like this:
See https://github.com/sirupsen/logrus#formatters