-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] stdout colored text displays incorrectly in Windows Command Prompt #609
Comments
Looks like that is missing feature in clap - it does not support Windows in coloring - see docs. Gotta figure out a way to compile for Windows without colors. If you have any ideas - I'm all ears! |
See https:/mackwic/colored AFAIK, windows CMD doesn't support coloring, full stop. Powershell does. |
i personally use the colored crate to do it although im sure there are others that work. that and some conditional compilation flags should do the trick |
We're using clap's built-in color library, which makes it difficult to patch. Also we're now not only using clap but an abstraction above it - structopt. So quick and harmless solution imo would be to set features correctly and disable coloring on Windows. Since it's a low priority I'd stick with this option. |
🐛 Bug Report
low priority issue but figured id log it. when using leo in cmd (not powershell) on windows the stdout looks like this
Stack trace & error message
Expected Behavior
colored output is supported on windows cmd
Your Environment
The text was updated successfully, but these errors were encountered: