tartley/colorama

stderr isn't reset on exit

Opened this issue · 0 comments

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.