{"action":"closed","issue":{"url":"https://api.github.com/repos/tartley/colorama/issues/83","labels_url":"https://api.github.com/repos/tartley/colorama/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/tartley/colorama/issues/83/comments","events_url":"https://api.github.com/repos/tartley/colorama/issues/83/events","html_url":"https://github.com/tartley/colorama/issues/83","id":125865851,"number":83,"title":"Excessive use causes crash","user":{"login":"jcannell","id":6595597,"avatar_url":"https://avatars.githubusercontent.com/u/6595597?v=3","gravatar_id":"","url":"https://api.github.com/users/jcannell","html_url":"https://github.com/jcannell","followers_url":"https://api.github.com/users/jcannell/followers","following_url":"https://api.github.com/users/jcannell/following{/other_user}","gists_url":"https://api.github.com/users/jcannell/gists{/gist_id}","starred_url":"https://api.github.com/users/jcannell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcannell/subscriptions","organizations_url":"https://api.github.com/users/jcannell/orgs","repos_url":"https://api.github.com/users/jcannell/repos","events_url":"https://api.github.com/users/jcannell/events{/privacy}","received_events_url":"https://api.github.com/users/jcannell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-11T03:14:00Z","updated_at":"2016-01-28T15:13:26Z","closed_at":"2016-01-28T15:13:26Z","body":"Howdy,\r\n\r\nJust started using colorama, noticed that when i use it in loops that print out colored text excessively, it crashes eventually. This is a shame, as I'm using it in a program that displays a colored menu (eventually the menu becomes sluggish and it eventually crashes)\r\n\r\nHere is the beginning of the stacktrace:\r\n\r\n`line 23, in green\r\n    print color.Fore.LIGHTGREEN_EX + text\r\nFile \"C:\\Python27\\lib\\site-packages\\colorama\\ansitowin32.py\", line 36, in write\r\n    self.__convertor.write(text)\r\nFile \"C:\\Python27\\lib\\site-packages\\colorama\\ansitowin32.py\", line 137, in write\r\n    self.write_and_convert(text)\r\nFile \"C:\\Python27\\lib\\site-packages\\colorama\\ansitowin32.py\", line 165, in write_and_convert\r\n    self.write_plain_text(text, cursor, len(text))\r\nFile \"C:\\Python27\\lib\\site-packages\\colorama\\ansitowin32.py\", line 170, in write_plain_text\r\n    self.wrapped.write(text[start:end])\r\nFile \"C:\\Python27\\lib\\site-packages\\colorama\\ansitowin32.py\", line 36, in write\r\n...\r\n...\r\n`\r\nIt's a never-ending loop of errors between lines 36, 137, 165, 170, 36, 137... and so on.\r\n\r\nAnd here is the full green() func (where colorama is called color):\r\n\r\n`\r\ndef green(text):\r\n    color.init(autoreset=True)\r\n    print color.Fore.LIGHTGREEN_EX + text\r\n`"}}