{"action":"created","issue":{"url":"https://api.github.com/repos/Araq/Nim/issues/1906","labels_url":"https://api.github.com/repos/Araq/Nim/issues/1906/labels{/name}","comments_url":"https://api.github.com/repos/Araq/Nim/issues/1906/comments","events_url":"https://api.github.com/repos/Araq/Nim/issues/1906/events","html_url":"https://github.com/Araq/Nim/issues/1906","id":53728741,"number":1906,"title":"terminal / eraseScreen() throws an OverflowError","user":{"login":"keyle","id":9749,"avatar_url":"https://avatars.githubusercontent.com/u/9749?v=3","gravatar_id":"","url":"https://api.github.com/users/keyle","html_url":"https://github.com/keyle","followers_url":"https://api.github.com/users/keyle/followers","following_url":"https://api.github.com/users/keyle/following{/other_user}","gists_url":"https://api.github.com/users/keyle/gists{/gist_id}","starred_url":"https://api.github.com/users/keyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyle/subscriptions","organizations_url":"https://api.github.com/users/keyle/orgs","repos_url":"https://api.github.com/users/keyle/repos","events_url":"https://api.github.com/users/keyle/events{/privacy}","received_events_url":"https://api.github.com/users/keyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-08T09:08:12Z","updated_at":"2015-01-10T01:29:57Z","closed_at":null,"body":"Nim Compiler Version 0.10.2 (2014-12-30) [Windows: amd64]\r\n\r\n```nimrod\r\nimport terminal\r\n\r\necho \"yo?\"\r\neraseScreen()\r\n```\r\n\r\n```\r\nyo?\r\nTraceback (most recent call last)\r\n[...]\r\nterminal.nim(190)        eraseScreen\r\nError: unhandled exception: over- or underflow [OverflowError]\r\n```"},"comment":{"url":"https://api.github.com/repos/Araq/Nim/issues/comments/69431302","html_url":"https://github.com/Araq/Nim/issues/1906#issuecomment-69431302","issue_url":"https://api.github.com/repos/Araq/Nim/issues/1906","id":69431302,"user":{"login":"keyle","id":9749,"avatar_url":"https://avatars.githubusercontent.com/u/9749?v=3","gravatar_id":"","url":"https://api.github.com/users/keyle","html_url":"https://github.com/keyle","followers_url":"https://api.github.com/users/keyle/followers","following_url":"https://api.github.com/users/keyle/following{/other_user}","gists_url":"https://api.github.com/users/keyle/gists{/gist_id}","starred_url":"https://api.github.com/users/keyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyle/subscriptions","organizations_url":"https://api.github.com/users/keyle/orgs","repos_url":"https://api.github.com/users/keyle/repos","events_url":"https://api.github.com/users/keyle/events{/privacy}","received_events_url":"https://api.github.com/users/keyle/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T01:29:57Z","updated_at":"2015-01-10T01:29:57Z","body":"This is a work around for windows only:\r\n\r\n```nimrod\r\nimport os, terminal\r\n\r\ndiscard execShellCmd(\"cls\")\r\nsetCursorPos(0, 0)\r\n```\r\n\r\nmaybe that should be implemented in terminal.nim for the when defined(\"windows\") ?\r\nhttps://github.com/Araq/Nim/blob/master/lib/pure/terminal.nim#L183"}}