{"action":"created","issue":{"url":"https://api.github.com/repos/JEG2/highline/issues/85","labels_url":"https://api.github.com/repos/JEG2/highline/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/JEG2/highline/issues/85/comments","events_url":"https://api.github.com/repos/JEG2/highline/issues/85/events","html_url":"https://github.com/JEG2/highline/issues/85","id":16128299,"number":85,"title":"terminal_size return nil in some environments in Linux","user":{"login":"boutil","id":990732,"avatar_url":"https://avatars.githubusercontent.com/u/990732?v=3","gravatar_id":"","url":"https://api.github.com/users/boutil","html_url":"https://github.com/boutil","followers_url":"https://api.github.com/users/boutil/followers","following_url":"https://api.github.com/users/boutil/following{/other_user}","gists_url":"https://api.github.com/users/boutil/gists{/gist_id}","starred_url":"https://api.github.com/users/boutil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boutil/subscriptions","organizations_url":"https://api.github.com/users/boutil/orgs","repos_url":"https://api.github.com/users/boutil/repos","events_url":"https://api.github.com/users/boutil/events{/privacy}","received_events_url":"https://api.github.com/users/boutil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2013-06-28T06:00:59Z","updated_at":"2015-02-03T22:42:08Z","closed_at":null,"body":"Hi,\r\nIn some environments on Linux, stty returns an empty string, which means that terminal_size returns nil instead of integers. This causes test_terminal_size test in test/tc_highline.rb, line 932 to fail.\r\n\r\nExamples of such environments are the clean environment created by pbuilder and sbuild in Debian to build packages. It probably can happen on other occasions.\r\n\r\nIf you want to insist on terminal size to return Fixnums, should terminal_size return a size of 0 if stty cannot return the size of the terminal? \r\n\r\nCheers,\r\n\r\nCédric"},"comment":{"url":"https://api.github.com/repos/JEG2/highline/issues/comments/72751772","html_url":"https://github.com/JEG2/highline/issues/85#issuecomment-72751772","issue_url":"https://api.github.com/repos/JEG2/highline/issues/85","id":72751772,"user":{"login":"abinoam","id":551790,"avatar_url":"https://avatars.githubusercontent.com/u/551790?v=3","gravatar_id":"","url":"https://api.github.com/users/abinoam","html_url":"https://github.com/abinoam","followers_url":"https://api.github.com/users/abinoam/followers","following_url":"https://api.github.com/users/abinoam/following{/other_user}","gists_url":"https://api.github.com/users/abinoam/gists{/gist_id}","starred_url":"https://api.github.com/users/abinoam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abinoam/subscriptions","organizations_url":"https://api.github.com/users/abinoam/orgs","repos_url":"https://api.github.com/users/abinoam/repos","events_url":"https://api.github.com/users/abinoam/events{/privacy}","received_events_url":"https://api.github.com/users/abinoam/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T22:42:08Z","updated_at":"2015-02-03T22:42:08Z","body":"I don't understand clearly. \r\nIO.console.winsize is working well (I misspelled to console_size at my last comment).\r\nIO.console_size not.\r\nI'll try some code now."}}