{"action":"opened","issue":{"url":"https://api.github.com/repos/spywhere/Terminality/issues/5","labels_url":"https://api.github.com/repos/spywhere/Terminality/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/spywhere/Terminality/issues/5/comments","events_url":"https://api.github.com/repos/spywhere/Terminality/issues/5/events","html_url":"https://github.com/spywhere/Terminality/issues/5","id":108890970,"number":5,"title":"Terminality does not handle \"scanf\" inputs correctly in C","user":{"login":"monotykamary","id":1130103,"avatar_url":"https://avatars.githubusercontent.com/u/1130103?v=3","gravatar_id":"","url":"https://api.github.com/users/monotykamary","html_url":"https://github.com/monotykamary","followers_url":"https://api.github.com/users/monotykamary/followers","following_url":"https://api.github.com/users/monotykamary/following{/other_user}","gists_url":"https://api.github.com/users/monotykamary/gists{/gist_id}","starred_url":"https://api.github.com/users/monotykamary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monotykamary/subscriptions","organizations_url":"https://api.github.com/users/monotykamary/orgs","repos_url":"https://api.github.com/users/monotykamary/repos","events_url":"https://api.github.com/users/monotykamary/events{/privacy}","received_events_url":"https://api.github.com/users/monotykamary/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-29T15:10:54Z","updated_at":"2015-09-29T15:10:54Z","closed_at":null,"body":"printf works:\r\n``` C\r\n#include <stdio.h>\r\n\r\nint main() {\r\n    printf(\"Insert an integer: \");\r\n}\r\n```\r\n![printf](http://puu.sh/kspSz/4c520631a5.png)\r\n\r\n\r\nprintf + scanf doesn't work so well and printf only appears after an input:\r\n``` C\r\n#include <stdio.h>\r\n\r\nint main() {\r\n    int n;\r\n    printf(\"Insert an integer: \");\r\n    scanf(\"%d\", &n);\r\n}\r\n```\r\n![printf + scanf](http://puu.sh/ksq0T/aab7527f9a.png)\r\n\r\n\r\nbut the inputs before the print are added to the calculation:\r\n```C\r\n#include <stdio.h>\r\n\r\nint main() {\r\n    int n;\r\n    printf(\"Insert an integer: \");\r\n    scanf(\"%d\", &n);\r\n    printf(\"n + 3 = %d\", n + 3);\r\n}\r\n```\r\n![printf + scanf + calculation proof](http://puu.sh/ksqhG/690598078b.png)\r\n\r\n\r\nOutside of terminality, it works perfectly fine in CMD and Git Bash. Terminality has no problems running Python.\r\n\r\nCurrently running Windows 10 x64 with Sublime 3083."}}