{"action":"created","issue":{"url":"https://api.github.com/repos/biegunka/terminal-size/issues/8","labels_url":"https://api.github.com/repos/biegunka/terminal-size/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/biegunka/terminal-size/issues/8/comments","events_url":"https://api.github.com/repos/biegunka/terminal-size/issues/8/events","html_url":"https://github.com/biegunka/terminal-size/pull/8","id":82036889,"number":8,"title":"Cygwin/MSYS support","user":{"login":"RyanGlScott","id":2364661,"avatar_url":"https://avatars.githubusercontent.com/u/2364661?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanGlScott","html_url":"https://github.com/RyanGlScott","followers_url":"https://api.github.com/users/RyanGlScott/followers","following_url":"https://api.github.com/users/RyanGlScott/following{/other_user}","gists_url":"https://api.github.com/users/RyanGlScott/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanGlScott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanGlScott/subscriptions","organizations_url":"https://api.github.com/users/RyanGlScott/orgs","repos_url":"https://api.github.com/users/RyanGlScott/repos","events_url":"https://api.github.com/users/RyanGlScott/events{/privacy}","received_events_url":"https://api.github.com/users/RyanGlScott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-28T17:19:11Z","updated_at":"2015-05-29T06:37:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/biegunka/terminal-size/pulls/8","html_url":"https://github.com/biegunka/terminal-size/pull/8","diff_url":"https://github.com/biegunka/terminal-size/pull/8.diff","patch_url":"https://github.com/biegunka/terminal-size/pull/8.patch"},"body":"Currently, the `size` command yields `Nothing` on a Cygwin or MSYS terminal on Windows, which is kind of unfortunate. As a workaround, I use the `process` library to call `stty size` if `c_GetConsoleScreenBufferInfo` fails. `stty` is a part of `coreutils`, so it _should_ be installed by default on Cygwin and MSYS (it worked when I tried it on my installations, at least.)\r\n\r\nAn alternative would be calling `tput lines` and `tput cols` processes, but that requires `ncurses`, which isn't installed by default on recent versions of Cygwin (plus, it kind of defeats the point of this library in the first place)."},"comment":{"url":"https://api.github.com/repos/biegunka/terminal-size/issues/comments/106709528","html_url":"https://github.com/biegunka/terminal-size/pull/8#issuecomment-106709528","issue_url":"https://api.github.com/repos/biegunka/terminal-size/issues/8","id":106709528,"user":{"login":"supki","id":862666,"avatar_url":"https://avatars.githubusercontent.com/u/862666?v=3","gravatar_id":"","url":"https://api.github.com/users/supki","html_url":"https://github.com/supki","followers_url":"https://api.github.com/users/supki/followers","following_url":"https://api.github.com/users/supki/following{/other_user}","gists_url":"https://api.github.com/users/supki/gists{/gist_id}","starred_url":"https://api.github.com/users/supki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supki/subscriptions","organizations_url":"https://api.github.com/users/supki/orgs","repos_url":"https://api.github.com/users/supki/repos","events_url":"https://api.github.com/users/supki/events{/privacy}","received_events_url":"https://api.github.com/users/supki/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T06:37:35Z","updated_at":"2015-05-29T06:37:35Z","body":"Alright."}}