{"action":"created","issue":{"url":"https://api.github.com/repos/tartley/colorama/issues/49","labels_url":"https://api.github.com/repos/tartley/colorama/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/tartley/colorama/issues/49/comments","events_url":"https://api.github.com/repos/tartley/colorama/issues/49/events","html_url":"https://github.com/tartley/colorama/issues/49","id":69154724,"number":49,"title":"ANSI reset code is printed on Windows on program exit","user":{"login":"msiemens","id":1873922,"avatar_url":"https://avatars.githubusercontent.com/u/1873922?v=3","gravatar_id":"","url":"https://api.github.com/users/msiemens","html_url":"https://github.com/msiemens","followers_url":"https://api.github.com/users/msiemens/followers","following_url":"https://api.github.com/users/msiemens/following{/other_user}","gists_url":"https://api.github.com/users/msiemens/gists{/gist_id}","starred_url":"https://api.github.com/users/msiemens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msiemens/subscriptions","organizations_url":"https://api.github.com/users/msiemens/orgs","repos_url":"https://api.github.com/users/msiemens/repos","events_url":"https://api.github.com/users/msiemens/events{/privacy}","received_events_url":"https://api.github.com/users/msiemens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-17T14:56:23Z","updated_at":"2015-04-19T20:21:15Z","closed_at":null,"body":"Given the following Python file:\r\n\r\n```python\r\nimport colorama\r\ncolorama.init()\r\n```\r\n\r\nRunning it results in this:\r\n\r\n```cmd\r\nC:\\Users\\markus\\tmp>python test.py\r\n←[0m\r\nC:\\Users\\markus\\tmp>\r\n```\r\n\r\nThis is the result of running [`initialise.reset_all`](https://github.com/tartley/colorama/blob/dc06ba4bcc6c641f2f1b685b2207047e6db594f7/colorama/initialise.py#L17) when exiting the script. The `AnsiToWin32` instance that is created isn't instructed to convert ANSI codes, so it just prints the ANSI reset code."},"comment":{"url":"https://api.github.com/repos/tartley/colorama/issues/comments/94310320","html_url":"https://github.com/tartley/colorama/issues/49#issuecomment-94310320","issue_url":"https://api.github.com/repos/tartley/colorama/issues/49","id":94310320,"user":{"login":"wiggin15","id":1686212,"avatar_url":"https://avatars.githubusercontent.com/u/1686212?v=3","gravatar_id":"","url":"https://api.github.com/users/wiggin15","html_url":"https://github.com/wiggin15","followers_url":"https://api.github.com/users/wiggin15/followers","following_url":"https://api.github.com/users/wiggin15/following{/other_user}","gists_url":"https://api.github.com/users/wiggin15/gists{/gist_id}","starred_url":"https://api.github.com/users/wiggin15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiggin15/subscriptions","organizations_url":"https://api.github.com/users/wiggin15/orgs","repos_url":"https://api.github.com/users/wiggin15/repos","events_url":"https://api.github.com/users/wiggin15/events{/privacy}","received_events_url":"https://api.github.com/users/wiggin15/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T20:21:15Z","updated_at":"2015-04-19T20:21:15Z","body":"The usage of 'register' here isn't right. Instead of registering the function, you are calling reset_all in initialize and passing the result of the call to 'register'."}}