{"action":"created","issue":{"url":"https://api.github.com/repos/sickill/stderred/issues/60","repository_url":"https://api.github.com/repos/sickill/stderred","labels_url":"https://api.github.com/repos/sickill/stderred/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/sickill/stderred/issues/60/comments","events_url":"https://api.github.com/repos/sickill/stderred/issues/60/events","html_url":"https://github.com/sickill/stderred/issues/60","id":251184529,"node_id":"MDU6SXNzdWUyNTExODQ1Mjk=","number":60,"title":"stderred breaks interactive prompts due to line buffering","user":{"login":"ssbarnea","id":102495,"node_id":"MDQ6VXNlcjEwMjQ5NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/102495?v=4","gravatar_id":"","url":"https://api.github.com/users/ssbarnea","html_url":"https://github.com/ssbarnea","followers_url":"https://api.github.com/users/ssbarnea/followers","following_url":"https://api.github.com/users/ssbarnea/following{/other_user}","gists_url":"https://api.github.com/users/ssbarnea/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbarnea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbarnea/subscriptions","organizations_url":"https://api.github.com/users/ssbarnea/orgs","repos_url":"https://api.github.com/users/ssbarnea/repos","events_url":"https://api.github.com/users/ssbarnea/events{/privacy}","received_events_url":"https://api.github.com/users/ssbarnea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-18T09:07:04Z","updated_at":"2018-06-02T08:52:16Z","closed_at":null,"author_association":"NONE","body":"I found at few cases where `stderred` produces a serious issue: the script running stopped and and I didn't know what happened until I stopped it (or gave some input).\r\n\r\nHere is the a reproducing bug:\r\n```\r\n>&2 unbuffer echo -n \"Are you sure you want to nuke everything?! \"\r\nread -n 1 yn\r\n```\r\n\r\nThis is a real deal because the user has no idea what's happening until is too late. Imagine what could happen.... I was lucky that I didn't press the wrong keys.\r\n"},"comment":{"url":"https://api.github.com/repos/sickill/stderred/issues/comments/394071131","html_url":"https://github.com/sickill/stderred/issues/60#issuecomment-394071131","issue_url":"https://api.github.com/repos/sickill/stderred/issues/60","id":394071131,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDA3MTEzMQ==","user":{"login":"ssbarnea","id":102495,"node_id":"MDQ6VXNlcjEwMjQ5NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/102495?v=4","gravatar_id":"","url":"https://api.github.com/users/ssbarnea","html_url":"https://github.com/ssbarnea","followers_url":"https://api.github.com/users/ssbarnea/followers","following_url":"https://api.github.com/users/ssbarnea/following{/other_user}","gists_url":"https://api.github.com/users/ssbarnea/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbarnea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbarnea/subscriptions","organizations_url":"https://api.github.com/users/ssbarnea/orgs","repos_url":"https://api.github.com/users/ssbarnea/repos","events_url":"https://api.github.com/users/ssbarnea/events{/privacy}","received_events_url":"https://api.github.com/users/ssbarnea/received_events","type":"User","site_admin":false},"created_at":"2018-06-02T08:52:16Z","updated_at":"2018-06-02T08:52:16Z","author_association":"NONE","body":"@cehoffman @sickill I really love this feature of coloring stderr as it improves the terminal UX considerably. Still, this bug which affects most tools that do interactive prompts, like yn is almost a blocker, as you endup with the terminal stuck without reason, that's because the \"prompt\" is not displayed, it is displayed only after you press enter.\r\n\r\nAs you can imagine, this is also dangereus as the prompt could be \"press ENTER to obliterate the world!\".\r\n\r\nAny ideas on how to fix it or to workaround it, without loosing stderred?"}}
{"actor":{"display_login":"ssbarnea"}}