{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/15382","labels_url":"https://api.github.com/repos/symfony/symfony/issues/15382/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/15382/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/15382/events","html_url":"https://github.com/symfony/symfony/pull/15382","id":97666116,"number":15382,"title":"[Console] Use readline for user input when available #DX","user":{"login":"michaelperrin","id":344445,"avatar_url":"https://avatars.githubusercontent.com/u/344445?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelperrin","html_url":"https://github.com/michaelperrin","followers_url":"https://api.github.com/users/michaelperrin/followers","following_url":"https://api.github.com/users/michaelperrin/following{/other_user}","gists_url":"https://api.github.com/users/michaelperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelperrin/subscriptions","organizations_url":"https://api.github.com/users/michaelperrin/orgs","repos_url":"https://api.github.com/users/michaelperrin/repos","events_url":"https://api.github.com/users/michaelperrin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelperrin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Reviewed","name":"Status: Reviewed","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-28T10:07:47Z","updated_at":"2015-08-01T13:09:05Z","closed_at":"2015-08-01T11:59:41Z","pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/15382","html_url":"https://github.com/symfony/symfony/pull/15382","diff_url":"https://github.com/symfony/symfony/pull/15382.diff","patch_url":"https://github.com/symfony/symfony/pull/15382.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | \r\n| License       | MIT\r\n| Doc PR        | \r\n\r\nGiven I am entering data in an user input\r\nWhen I use left and right keys to make some changes in what I have typed\r\nThen the cursor should move accordingly instead of adding characters at the end of the line\r\n\r\nTo make it simple: using the arrow keys (←  →)  to make changes to what I already typed would be much handier than getting `^[[D` and `^[[C` characters in the terminal and having to delete all chars to type everything again.\r\n\r\nI could not add any extra tests to this as the STDIN can't be used during tests. But they are not breaking and I tried again all types of questions (text, choices, hidden) by myself.\r\n\r\nNote that `readline` can't be used for hidden questions, as `stty -echo` is not taken into account."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/126914140","html_url":"https://github.com/symfony/symfony/pull/15382#issuecomment-126914140","issue_url":"https://api.github.com/repos/symfony/symfony/issues/15382","id":126914140,"user":{"login":"michaelperrin","id":344445,"avatar_url":"https://avatars.githubusercontent.com/u/344445?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelperrin","html_url":"https://github.com/michaelperrin","followers_url":"https://api.github.com/users/michaelperrin/followers","following_url":"https://api.github.com/users/michaelperrin/following{/other_user}","gists_url":"https://api.github.com/users/michaelperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelperrin/subscriptions","organizations_url":"https://api.github.com/users/michaelperrin/orgs","repos_url":"https://api.github.com/users/michaelperrin/repos","events_url":"https://api.github.com/users/michaelperrin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelperrin/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T13:09:04Z","updated_at":"2015-08-01T13:09:04Z","body":"Thank you!"}}