{"action":"closed","number":91,"pull_request":{"url":"https://api.github.com/repos/ticki/termion/pulls/91","id":107496595,"html_url":"https://github.com/ticki/termion/pull/91","diff_url":"https://github.com/ticki/termion/pull/91.diff","patch_url":"https://github.com/ticki/termion/pull/91.patch","issue_url":"https://api.github.com/repos/ticki/termion/issues/91","number":91,"state":"closed","locked":false,"title":"Added color support detection","user":{"login":"IGI-111","id":7190144,"avatar_url":"https://avatars.githubusercontent.com/u/7190144?v=3","gravatar_id":"","url":"https://api.github.com/users/IGI-111","html_url":"https://github.com/IGI-111","followers_url":"https://api.github.com/users/IGI-111/followers","following_url":"https://api.github.com/users/IGI-111/following{/other_user}","gists_url":"https://api.github.com/users/IGI-111/gists{/gist_id}","starred_url":"https://api.github.com/users/IGI-111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IGI-111/subscriptions","organizations_url":"https://api.github.com/users/IGI-111/orgs","repos_url":"https://api.github.com/users/IGI-111/repos","events_url":"https://api.github.com/users/IGI-111/events{/privacy}","received_events_url":"https://api.github.com/users/IGI-111/received_events","type":"User","site_admin":false},"body":"This is meant at least as a partial answer to #78.\r\n\r\nColor support is inferred by using either `OSC 4` escape codes or the value of `TERM`.\r\nIt can't detect what the terminal isn't advertising, so in certain cases, it's possible the terminal supports more colors but doesn't say.\r\n\r\nOne thing to discuss might be the the value of the timeout for answers, although 100ms works well in practice.","created_at":"2017-02-22T20:58:07Z","updated_at":"2017-02-26T08:35:39Z","closed_at":"2017-02-26T08:35:39Z","merged_at":"2017-02-26T08:35:39Z","merge_commit_sha":"ba72d0bcec02016dbf04c1005ceb1c6cf21ad43c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ticki/termion/pulls/91/commits","review_comments_url":"https://api.github.com/repos/ticki/termion/pulls/91/comments","review_comment_url":"https://api.github.com/repos/ticki/termion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ticki/termion/issues/91/comments","statuses_url":"https://api.github.com/repos/ticki/termion/statuses/95df0db220c6139d79323b953a1546b738f42699","head":{"label":"IGI-111:master","ref":"master","sha":"95df0db220c6139d79323b953a1546b738f42699","user":{"login":"IGI-111","id":7190144,"avatar_url":"https://avatars.githubusercontent.com/u/7190144?v=3","gravatar_id":"","url":"https://api.github.com/users/IGI-111","html_url":"https://github.com/IGI-111","followers_url":"https://api.github.com/users/IGI-111/followers","following_url":"https://api.github.com/users/IGI-111/following{/other_user}","gists_url":"https://api.github.com/users/IGI-111/gists{/gist_id}","starred_url":"https://api.github.com/users/IGI-111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IGI-111/subscriptions","organizations_url":"https://api.github.com/users/IGI-111/orgs","repos_url":"https://api.github.com/users/IGI-111/repos","events_url":"https://api.github.com/users/IGI-111/events{/privacy}","received_events_url":"https://api.github.com/users/IGI-111/received_events","type":"User","site_admin":false},"repo":{"id":82850313,"name":"termion","full_name":"IGI-111/termion","owner":{"login":"IGI-111","id":7190144,"avatar_url":"https://avatars.githubusercontent.com/u/7190144?v=3","gravatar_id":"","url":"https://api.github.com/users/IGI-111","html_url":"https://github.com/IGI-111","followers_url":"https://api.github.com/users/IGI-111/followers","following_url":"https://api.github.com/users/IGI-111/following{/other_user}","gists_url":"https://api.github.com/users/IGI-111/gists{/gist_id}","starred_url":"https://api.github.com/users/IGI-111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IGI-111/subscriptions","organizations_url":"https://api.github.com/users/IGI-111/orgs","repos_url":"https://api.github.com/users/IGI-111/repos","events_url":"https://api.github.com/users/IGI-111/events{/privacy}","received_events_url":"https://api.github.com/users/IGI-111/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IGI-111/termion","description":"A bindless library for manipulating terminals.","fork":true,"url":"https://api.github.com/repos/IGI-111/termion","forks_url":"https://api.github.com/repos/IGI-111/termion/forks","keys_url":"https://api.github.com/repos/IGI-111/termion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IGI-111/termion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IGI-111/termion/teams","hooks_url":"https://api.github.com/repos/IGI-111/termion/hooks","issue_events_url":"https://api.github.com/repos/IGI-111/termion/issues/events{/number}","events_url":"https://api.github.com/repos/IGI-111/termion/events","assignees_url":"https://api.github.com/repos/IGI-111/termion/assignees{/user}","branches_url":"https://api.github.com/repos/IGI-111/termion/branches{/branch}","tags_url":"https://api.github.com/repos/IGI-111/termion/tags","blobs_url":"https://api.github.com/repos/IGI-111/termion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IGI-111/termion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IGI-111/termion/git/refs{/sha}","trees_url":"https://api.github.com/repos/IGI-111/termion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IGI-111/termion/statuses/{sha}","languages_url":"https://api.github.com/repos/IGI-111/termion/languages","stargazers_url":"https://api.github.com/repos/IGI-111/termion/stargazers","contributors_url":"https://api.github.com/repos/IGI-111/termion/contributors","subscribers_url":"https://api.github.com/repos/IGI-111/termion/subscribers","subscription_url":"https://api.github.com/repos/IGI-111/termion/subscription","commits_url":"https://api.github.com/repos/IGI-111/termion/commits{/sha}","git_commits_url":"https://api.github.com/repos/IGI-111/termion/git/commits{/sha}","comments_url":"https://api.github.com/repos/IGI-111/termion/comments{/number}","issue_comment_url":"https://api.github.com/repos/IGI-111/termion/issues/comments{/number}","contents_url":"https://api.github.com/repos/IGI-111/termion/contents/{+path}","compare_url":"https://api.github.com/repos/IGI-111/termion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IGI-111/termion/merges","archive_url":"https://api.github.com/repos/IGI-111/termion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IGI-111/termion/downloads","issues_url":"https://api.github.com/repos/IGI-111/termion/issues{/number}","pulls_url":"https://api.github.com/repos/IGI-111/termion/pulls{/number}","milestones_url":"https://api.github.com/repos/IGI-111/termion/milestones{/number}","notifications_url":"https://api.github.com/repos/IGI-111/termion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IGI-111/termion/labels{/name}","releases_url":"https://api.github.com/repos/IGI-111/termion/releases{/id}","deployments_url":"https://api.github.com/repos/IGI-111/termion/deployments","created_at":"2017-02-22T20:40:01Z","updated_at":"2017-02-22T20:40:03Z","pushed_at":"2017-02-26T00:38:44Z","git_url":"git://github.com/IGI-111/termion.git","ssh_url":"git@github.com:IGI-111/termion.git","clone_url":"https://github.com/IGI-111/termion.git","svn_url":"https://github.com/IGI-111/termion","homepage":"","size":4457,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ticki:master","ref":"master","sha":"04f6bcd677ac68e6c029be2338d4b3b2d3c851cf","user":{"login":"ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/ticki","html_url":"https://github.com/ticki","followers_url":"https://api.github.com/users/ticki/followers","following_url":"https://api.github.com/users/ticki/following{/other_user}","gists_url":"https://api.github.com/users/ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticki/subscriptions","organizations_url":"https://api.github.com/users/ticki/orgs","repos_url":"https://api.github.com/users/ticki/repos","events_url":"https://api.github.com/users/ticki/events{/privacy}","received_events_url":"https://api.github.com/users/ticki/received_events","type":"User","site_admin":false},"repo":{"id":53257295,"name":"termion","full_name":"ticki/termion","owner":{"login":"ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/ticki","html_url":"https://github.com/ticki","followers_url":"https://api.github.com/users/ticki/followers","following_url":"https://api.github.com/users/ticki/following{/other_user}","gists_url":"https://api.github.com/users/ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticki/subscriptions","organizations_url":"https://api.github.com/users/ticki/orgs","repos_url":"https://api.github.com/users/ticki/repos","events_url":"https://api.github.com/users/ticki/events{/privacy}","received_events_url":"https://api.github.com/users/ticki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ticki/termion","description":"A bindless library for manipulating terminals.","fork":false,"url":"https://api.github.com/repos/ticki/termion","forks_url":"https://api.github.com/repos/ticki/termion/forks","keys_url":"https://api.github.com/repos/ticki/termion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ticki/termion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ticki/termion/teams","hooks_url":"https://api.github.com/repos/ticki/termion/hooks","issue_events_url":"https://api.github.com/repos/ticki/termion/issues/events{/number}","events_url":"https://api.github.com/repos/ticki/termion/events","assignees_url":"https://api.github.com/repos/ticki/termion/assignees{/user}","branches_url":"https://api.github.com/repos/ticki/termion/branches{/branch}","tags_url":"https://api.github.com/repos/ticki/termion/tags","blobs_url":"https://api.github.com/repos/ticki/termion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ticki/termion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ticki/termion/git/refs{/sha}","trees_url":"https://api.github.com/repos/ticki/termion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ticki/termion/statuses/{sha}","languages_url":"https://api.github.com/repos/ticki/termion/languages","stargazers_url":"https://api.github.com/repos/ticki/termion/stargazers","contributors_url":"https://api.github.com/repos/ticki/termion/contributors","subscribers_url":"https://api.github.com/repos/ticki/termion/subscribers","subscription_url":"https://api.github.com/repos/ticki/termion/subscription","commits_url":"https://api.github.com/repos/ticki/termion/commits{/sha}","git_commits_url":"https://api.github.com/repos/ticki/termion/git/commits{/sha}","comments_url":"https://api.github.com/repos/ticki/termion/comments{/number}","issue_comment_url":"https://api.github.com/repos/ticki/termion/issues/comments{/number}","contents_url":"https://api.github.com/repos/ticki/termion/contents/{+path}","compare_url":"https://api.github.com/repos/ticki/termion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ticki/termion/merges","archive_url":"https://api.github.com/repos/ticki/termion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ticki/termion/downloads","issues_url":"https://api.github.com/repos/ticki/termion/issues{/number}","pulls_url":"https://api.github.com/repos/ticki/termion/pulls{/number}","milestones_url":"https://api.github.com/repos/ticki/termion/milestones{/number}","notifications_url":"https://api.github.com/repos/ticki/termion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ticki/termion/labels{/name}","releases_url":"https://api.github.com/repos/ticki/termion/releases{/id}","deployments_url":"https://api.github.com/repos/ticki/termion/deployments","created_at":"2016-03-06T13:54:02Z","updated_at":"2017-02-24T05:10:50Z","pushed_at":"2017-02-26T08:35:39Z","git_url":"git://github.com/ticki/termion.git","ssh_url":"git@github.com:ticki/termion.git","clone_url":"https://github.com/ticki/termion.git","svn_url":"https://github.com/ticki/termion","homepage":"","size":4453,"stargazers_count":420,"watchers_count":420,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":35,"mirror_url":null,"open_issues_count":14,"forks":35,"open_issues":14,"watchers":420,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ticki/termion/pulls/91"},"html":{"href":"https://github.com/ticki/termion/pull/91"},"issue":{"href":"https://api.github.com/repos/ticki/termion/issues/91"},"comments":{"href":"https://api.github.com/repos/ticki/termion/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/ticki/termion/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/ticki/termion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ticki/termion/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/ticki/termion/statuses/95df0db220c6139d79323b953a1546b738f42699"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/ticki","html_url":"https://github.com/ticki","followers_url":"https://api.github.com/users/ticki/followers","following_url":"https://api.github.com/users/ticki/following{/other_user}","gists_url":"https://api.github.com/users/ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticki/subscriptions","organizations_url":"https://api.github.com/users/ticki/orgs","repos_url":"https://api.github.com/users/ticki/repos","events_url":"https://api.github.com/users/ticki/events{/privacy}","received_events_url":"https://api.github.com/users/ticki/received_events","type":"User","site_admin":false},"comments":1,"review_comments":10,"maintainer_can_modify":false,"commits":2,"additions":97,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"ticki"}}