Skip to content
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

stderr isn't reset on exit #218

Open
cjerdonek opened this issue Mar 27, 2019 · 0 comments
Open

stderr isn't reset on exit #218

cjerdonek opened this issue Mar 27, 2019 · 0 comments

Comments

@cjerdonek
Copy link

colorama doesn't seem to reset stderr properly on program exit.

This resulted in the following pip issue: pypa/pip#6354
It causes the color to remain in the user's terminal.

It's possible this is caused by the fact that colorama's reset_all() which it calls on exit only resets orig_stdout and not orig_stderr, which is where the color is happening:

def reset_all():
if AnsiToWin32 is not None: # Issue #74: objects might become None at exit
AnsiToWin32(orig_stdout).reset_all()

See also the related issue #200.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant