-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
ANSI reset code is printed on Windows on program exit #49
Comments
This seems to be related to your issue, #48. It doesn't happen on environments without TERM set... I see that TERM causes problems for some users, and I'm trying to think if there's a way to change this. It's necessary to make colorama work on terminal emulators under Windows. Why do you have TERM set on cmd? |
Oh, that's interesting. Then my patch in #50 is propably wrong as the problem seems to be in another place. I'll try to debug this in the next days.
For me, I happened to have TERM set because otherwise git would complain about the terminal not being fully functional (see for example http://stackoverflow.com/q/7949956/997063). |
No TERM variable set for me, and I have the same problem (in both cmd and Powershell). After some tests, it seems that |
Given the following Python file:
Running it results in this:
This is the result of running
initialise.reset_all
when exiting the script. TheAnsiToWin32
instance that is created isn't instructed to convert ANSI codes, so it just prints the ANSI reset code.The text was updated successfully, but these errors were encountered: