{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/18496","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/18496/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/18496/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/18496/events","html_url":"https://github.com/symfony/symfony/pull/18496","id":147176661,"number":18496,"title":"[Console] use ANSI escape sequences in ProgressBar overwrite method","user":{"login":"alekitto","id":1257206,"avatar_url":"https://avatars.githubusercontent.com/u/1257206?v=3","gravatar_id":"","url":"https://api.github.com/users/alekitto","html_url":"https://github.com/alekitto","followers_url":"https://api.github.com/users/alekitto/followers","following_url":"https://api.github.com/users/alekitto/following{/other_user}","gists_url":"https://api.github.com/users/alekitto/gists{/gist_id}","starred_url":"https://api.github.com/users/alekitto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alekitto/subscriptions","organizations_url":"https://api.github.com/users/alekitto/orgs","repos_url":"https://api.github.com/users/alekitto/repos","events_url":"https://api.github.com/users/alekitto/events{/privacy}","received_events_url":"https://api.github.com/users/alekitto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Console","name":"Console","color":"DDDDDD"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-09T23:41:46Z","updated_at":"2016-04-14T12:48:34Z","closed_at":"2016-04-14T11:51:49Z","pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/18496","html_url":"https://github.com/symfony/symfony/pull/18496","diff_url":"https://github.com/symfony/symfony/pull/18496.diff","patch_url":"https://github.com/symfony/symfony/pull/18496.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Branch?       | 2.7\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | maybe\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | #16957\r\n| License       | MIT\r\n| Doc PR        |\r\n\r\nRewritten `overwrite` method in ProgressBar class to use ANSI escape sequences to erase lines.\r\nThis removes the need to store the last message length as it is not needed to fill the buffer with spaces anymore. As a plus it correctly resets the cursor position while clearing the output\r\n\r\nIf the output is not decorated the behavior has not been changed.\r\nCould possibly cause a BC break if testing against the decorated emitted output as binary string"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/209923453","html_url":"https://github.com/symfony/symfony/pull/18496#issuecomment-209923453","issue_url":"https://api.github.com/repos/symfony/symfony/issues/18496","id":209923453,"user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T12:48:34Z","updated_at":"2016-04-14T12:48:34Z","body":"@alekitto please before sending a PR, open an issue to discuss about it. A \"escape sequence builder\" sounds too complex for this simple problem. Thanks!"}}