-
Notifications
You must be signed in to change notification settings - Fork 84
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
Not working on windows #59
Comments
Hi @sk-Prime, What version of Windows are you running? Which console? I believe the virtual terminal sequence support is only available in Windows 10. |
in windows seven it doesn't work. but colour crate perfectly works. but i liked colored approach. |
Yes, I can confirm it doesn't work on windows. Could this be mentioned in the README until it's fixed ? |
im using Windows 10 with devmode on. |
Same issue. Both in cmd and PowerShell. Fresh Windows 10 installation. |
Hi all, Could you please provide details about your OS, what shell/terminal you are using, an example of your code that does not work and a screenshot with the output showing it not working. Even the Rust toolchain you are using could be the issue. I ask for this information as I am unable to reproduce on my machine, and in my experience with Rust production code, running on many machines (all Windows 10) that use |
I have encountered the same issue. |
Oh I think I find the answer. As the doc of ansi_term suggests, On Windows 10, the application must enable ANSI support first: |
@constituent did you try using https://docs.rs/colored/2.0.0/x86_64-pc-windows-msvc/colored/control/fn.set_virtual_terminal.html? |
I can't quite remember, but probably not |
This is working well for me:
|
It is showing numbers rather than color. in this case
blue
Though i have added control::set_virtual_terminal(true); in my source file.
The text was updated successfully, but these errors were encountered: