{"action":"created","issue":{"url":"https://api.github.com/repos/tandrews1/FlashGroups/issues/6","labels_url":"https://api.github.com/repos/tandrews1/FlashGroups/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/tandrews1/FlashGroups/issues/6/comments","events_url":"https://api.github.com/repos/tandrews1/FlashGroups/issues/6/events","html_url":"https://github.com/tandrews1/FlashGroups/issues/6","id":120056162,"number":6,"title":"define.py needs a general protected input function that catches the KeyboardInterrupt and says 'Goodbye'","user":{"login":"tandrews1","id":1581606,"avatar_url":"https://avatars.githubusercontent.com/u/1581606?v=3","gravatar_id":"","url":"https://api.github.com/users/tandrews1","html_url":"https://github.com/tandrews1","followers_url":"https://api.github.com/users/tandrews1/followers","following_url":"https://api.github.com/users/tandrews1/following{/other_user}","gists_url":"https://api.github.com/users/tandrews1/gists{/gist_id}","starred_url":"https://api.github.com/users/tandrews1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tandrews1/subscriptions","organizations_url":"https://api.github.com/users/tandrews1/orgs","repos_url":"https://api.github.com/users/tandrews1/repos","events_url":"https://api.github.com/users/tandrews1/events{/privacy}","received_events_url":"https://api.github.com/users/tandrews1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-02T23:05:01Z","updated_at":"2015-12-02T23:07:47Z","closed_at":null,"body":"There are a few places where we get input from the user, and catch the interrupt if they Ctrl-C to say goodbye and exit nicely. We should make a general wrapper function that encapsulates this behavior.\r\n\r\nSomething like \r\n\r\n`def protected_raw_input(prompt):`\r\n`    try:`\r\n`             input  = raw_input(prompt)`\r\n`     except KeyboardInterrupt:`\r\n`           print \"\"`\r\n`           print \"Goodbye\"`\r\n`           exit()`\r\n`     return input `"},"comment":{"url":"https://api.github.com/repos/tandrews1/FlashGroups/issues/comments/161462408","html_url":"https://github.com/tandrews1/FlashGroups/issues/6#issuecomment-161462408","issue_url":"https://api.github.com/repos/tandrews1/FlashGroups/issues/6","id":161462408,"user":{"login":"tandrews1","id":1581606,"avatar_url":"https://avatars.githubusercontent.com/u/1581606?v=3","gravatar_id":"","url":"https://api.github.com/users/tandrews1","html_url":"https://github.com/tandrews1","followers_url":"https://api.github.com/users/tandrews1/followers","following_url":"https://api.github.com/users/tandrews1/following{/other_user}","gists_url":"https://api.github.com/users/tandrews1/gists{/gist_id}","starred_url":"https://api.github.com/users/tandrews1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tandrews1/subscriptions","organizations_url":"https://api.github.com/users/tandrews1/orgs","repos_url":"https://api.github.com/users/tandrews1/repos","events_url":"https://api.github.com/users/tandrews1/events{/privacy}","received_events_url":"https://api.github.com/users/tandrews1/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T23:07:47Z","updated_at":"2015-12-02T23:07:47Z","body":"Wow either I'm doing something dumb or github's code markdown is a POS. Not only do you have to put ticks on each line, it strips the indentation out. "}}