{"action":"created","issue":{"url":"https://api.github.com/repos/HalosGhost/pbpst/issues/32","labels_url":"https://api.github.com/repos/HalosGhost/pbpst/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/HalosGhost/pbpst/issues/32/comments","events_url":"https://api.github.com/repos/HalosGhost/pbpst/issues/32/events","html_url":"https://github.com/HalosGhost/pbpst/issues/32","id":102898925,"number":32,"title":"Stopping reading from stdin with -S requires a double Ctrl+D","user":{"login":"AladW","id":5507364,"avatar_url":"https://avatars.githubusercontent.com/u/5507364?v=3","gravatar_id":"","url":"https://api.github.com/users/AladW","html_url":"https://github.com/AladW","followers_url":"https://api.github.com/users/AladW/followers","following_url":"https://api.github.com/users/AladW/following{/other_user}","gists_url":"https://api.github.com/users/AladW/gists{/gist_id}","starred_url":"https://api.github.com/users/AladW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AladW/subscriptions","organizations_url":"https://api.github.com/users/AladW/orgs","repos_url":"https://api.github.com/users/AladW/repos","events_url":"https://api.github.com/users/AladW/events{/privacy}","received_events_url":"https://api.github.com/users/AladW/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HalosGhost/pbpst/labels/Bug","name":"Bug","color":"207de5"},{"url":"https://api.github.com/repos/HalosGhost/pbpst/labels/Severity:%20Blocking","name":"Severity: Blocking","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/HalosGhost/pbpst/milestones/1","html_url":"https://github.com/HalosGhost/pbpst/milestones/1.0.0","labels_url":"https://api.github.com/repos/HalosGhost/pbpst/milestones/1/labels","id":1223166,"number":1,"title":"1.0.0","description":"This milestone will serve as the todo-list for all things which must be completed before I will consider ``pbpst`` to be wothy of a major release.","creator":{"login":"HalosGhost","id":49465,"avatar_url":"https://avatars.githubusercontent.com/u/49465?v=3","gravatar_id":"","url":"https://api.github.com/users/HalosGhost","html_url":"https://github.com/HalosGhost","followers_url":"https://api.github.com/users/HalosGhost/followers","following_url":"https://api.github.com/users/HalosGhost/following{/other_user}","gists_url":"https://api.github.com/users/HalosGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/HalosGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HalosGhost/subscriptions","organizations_url":"https://api.github.com/users/HalosGhost/orgs","repos_url":"https://api.github.com/users/HalosGhost/repos","events_url":"https://api.github.com/users/HalosGhost/events{/privacy}","received_events_url":"https://api.github.com/users/HalosGhost/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":16,"state":"open","created_at":"2015-07-24T02:41:38Z","updated_at":"2015-08-24T22:19:46Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-08-24T21:49:55Z","updated_at":"2015-08-24T22:31:57Z","closed_at":null,"body":"Tools like gist interrupt the paste with ^C, and stop reading from stdin with ^D. With pbpst, it goes like this:\r\n```\r\npbpst -S\r\nnew foo bar\r\n^D\r\n^D\r\nhttps://ptpb.pw/S5rr\r\n```\r\nAdditionally, if Enter is not pressed after \"new foo bar\", ^D is required three times to get the link."},"comment":{"url":"https://api.github.com/repos/HalosGhost/pbpst/issues/comments/134400340","html_url":"https://github.com/HalosGhost/pbpst/issues/32#issuecomment-134400340","issue_url":"https://api.github.com/repos/HalosGhost/pbpst/issues/32","id":134400340,"user":{"login":"HalosGhost","id":49465,"avatar_url":"https://avatars.githubusercontent.com/u/49465?v=3","gravatar_id":"","url":"https://api.github.com/users/HalosGhost","html_url":"https://github.com/HalosGhost","followers_url":"https://api.github.com/users/HalosGhost/followers","following_url":"https://api.github.com/users/HalosGhost/following{/other_user}","gists_url":"https://api.github.com/users/HalosGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/HalosGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HalosGhost/subscriptions","organizations_url":"https://api.github.com/users/HalosGhost/orgs","repos_url":"https://api.github.com/users/HalosGhost/repos","events_url":"https://api.github.com/users/HalosGhost/events{/privacy}","received_events_url":"https://api.github.com/users/HalosGhost/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T22:31:57Z","updated_at":"2015-08-24T22:31:57Z","body":"For documentation, see [this SO post](https://stackoverflow.com/questions/1516122/how-to-capture-controld-signal/1516177#1516177).\r\n\r\nInterestingly enough, ``pbpst`` does not directly read ``stdin``. We just offload that responsibility to ``libcurl``. I will research this a little more and see if ``libcurl`` has a simple way to deal with this case; and if not, I will close this as `INVALID` and report it upstream."}}