{"action":"closed","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/5259","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/5259/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/5259/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/5259/events","html_url":"https://github.com/nim-lang/Nim/issues/5259","id":202283386,"number":5259,"title":"getch() not blocking the program correctly","user":{"login":"dawkot","id":22991711,"avatar_url":"https://avatars.githubusercontent.com/u/22991711?v=3","gravatar_id":"","url":"https://api.github.com/users/dawkot","html_url":"https://github.com/dawkot","followers_url":"https://api.github.com/users/dawkot/followers","following_url":"https://api.github.com/users/dawkot/following{/other_user}","gists_url":"https://api.github.com/users/dawkot/gists{/gist_id}","starred_url":"https://api.github.com/users/dawkot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawkot/subscriptions","organizations_url":"https://api.github.com/users/dawkot/orgs","repos_url":"https://api.github.com/users/dawkot/repos","events_url":"https://api.github.com/users/dawkot/events{/privacy}","received_events_url":"https://api.github.com/users/dawkot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-21T02:11:44Z","updated_at":"2017-01-21T02:23:03Z","closed_at":"2017-01-21T02:23:03Z","body":"This block of code:\r\n`let input = getch()\r\nif (input == 'c' or input == 'C'):\r\n            isServer = false\r\n        elif (input == 's' or input == 'S'):\r\n            isServer = true\r\n        else:\r\n            continue`\r\nReturns this:\r\n`SIGSEGV: Illegal storage access. (Attempt to read from nil?)`\r\nHowever, if I leave only `let input = getch()` and do nothing with the value, the message is not showing up."}}
{"actor":{"display_login":"dawkot"}}