{"action":"created","issue":{"url":"https://api.github.com/repos/bpython/bpython/issues/340","labels_url":"https://api.github.com/repos/bpython/bpython/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/bpython/bpython/issues/340/comments","events_url":"https://api.github.com/repos/bpython/bpython/issues/340/events","html_url":"https://github.com/bpython/bpython/issues/340","id":40089348,"number":340,"title":"ANSI escape sequence support in bpython-curtsies","user":{"login":"thomasballinger","id":458879,"avatar_url":"https://avatars.githubusercontent.com/u/458879?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasballinger","html_url":"https://github.com/thomasballinger","followers_url":"https://api.github.com/users/thomasballinger/followers","following_url":"https://api.github.com/users/thomasballinger/following{/other_user}","gists_url":"https://api.github.com/users/thomasballinger/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasballinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasballinger/subscriptions","organizations_url":"https://api.github.com/users/thomasballinger/orgs","repos_url":"https://api.github.com/users/thomasballinger/repos","events_url":"https://api.github.com/users/thomasballinger/events{/privacy}","received_events_url":"https://api.github.com/users/thomasballinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-12T19:20:05Z","updated_at":"2015-01-09T19:24:29Z","closed_at":null,"body":"I thought we had this somewhere, but I can't find it.\r\n\r\n    from curtsies.fmtuncs import *\r\n    print blue('a'*200)   # assuming terminal width is < 80 or so\r\n\r\nThis isn't just curtsies, it's ANSI escape sequences of any kind correctly - we should find a library that parses them and strips them at the minimum, or better that converts them to curtsies colored strings. Curtsies has a parser for this but either we're not useing it or it doesn't quite work right."},"comment":{"url":"https://api.github.com/repos/bpython/bpython/issues/comments/69384747","html_url":"https://github.com/bpython/bpython/issues/340#issuecomment-69384747","issue_url":"https://api.github.com/repos/bpython/bpython/issues/340","id":69384747,"user":{"login":"sebastinas","id":114613,"avatar_url":"https://avatars.githubusercontent.com/u/114613?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastinas","html_url":"https://github.com/sebastinas","followers_url":"https://api.github.com/users/sebastinas/followers","following_url":"https://api.github.com/users/sebastinas/following{/other_user}","gists_url":"https://api.github.com/users/sebastinas/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastinas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastinas/subscriptions","organizations_url":"https://api.github.com/users/sebastinas/orgs","repos_url":"https://api.github.com/users/sebastinas/repos","events_url":"https://api.github.com/users/sebastinas/events{/privacy}","received_events_url":"https://api.github.com/users/sebastinas/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T19:24:29Z","updated_at":"2015-01-09T19:24:29Z","body":"The long string does not work because it is actually invalid. The last `\\x1b[` is incomplete."}}