-
Notifications
You must be signed in to change notification settings - Fork 8
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 in windows 10 #2
Comments
@sharkbound This is good news. @outcastdreamer I got myself a windows license. I'll investigate this in a VM. |
I got it to work by importing init from colorama. Like this: |
With this it works perfect ! thanks @Nikedi |
I'm planning to add windows support via the Environments & Feature Sets interface. This will offer a way to get windows compatible register-objects ( I'll add Environments & Feature Sets to |
@mcaay Thanks for posting this.
I guess this is related to #15. When #16 is done, we can omit
Some terminals do that as a way to support 8bit color and RGB (true color) ANSI sequences. |
Microsoft announced that Windows gets a new Terminal: https://devblogs.microsoft.com/commandline/introducing-windows-terminal Let's hope it's compatible to the ANSI sequences that most other terminals use. |
@feluxe i hope so, right now as it is, windows terminals is a mess of what is best for the job, sometimes you need GIT shell, sometimes CMDER, powershell, cmd, ect. i hope this new one will be a one-in-all solution |
You don't need to use the colorama module to make it work on windows. If you add this near the top, then import os, sys
if sys.platform == "win32":
os.system('color') Better fix: #2 (comment) |
@simplebinary This is great! Thanks for leaving this here. I just tried and it seems to work very well. With this fix I close this issue, because @simplebinary solution seems nice. Plus, the new Windows Terminal will hopefully soon be shipped and I'm sure it will work with sty out of the box. Thanks to everyone for your helpful comments! |
The "new Windows Terminal" is only available on Windows 10, so other users of Windows are booted out. |
@feluxe Actually, an even better fix is available: import os
os.system("") It doesn't actually require the |
I tried the example codes in python3 running in my cmd in windows 10 but it doesn't print the string which I have mentioned as show n in the screenshot. Kindly find a solution for this!!
The text was updated successfully, but these errors were encountered: