I'm having issue with powershell
mrquantumoff opened this issue · comments
Demir Yerli commented
So, I have compiled my app for windows and I see this.
As you see clap's coloured output is ok, but mine is strange, does anybody know what to do with this?
Demir Yerli commented
I made it work by adding a few lines of code in the main function
fn main() {
#[cfg(windows)] {
let _varname = colored::control::set_virtual_terminal(true).unwrap_or(());
}
}
Kurt Lawrence commented
Thanks @mrquantumoff. If you would like to add some documentation in the readme as a PR that would help heaps.