{"action":"closed","number":155,"pull_request":{"url":"https://api.github.com/repos/jeaye/ncurses-rs/pulls/155","id":194320700,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MzIwNzAw","html_url":"https://github.com/jeaye/ncurses-rs/pull/155","diff_url":"https://github.com/jeaye/ncurses-rs/pull/155.diff","patch_url":"https://github.com/jeaye/ncurses-rs/pull/155.patch","issue_url":"https://api.github.com/repos/jeaye/ncurses-rs/issues/155","number":155,"state":"closed","locked":false,"title":"add extended color functions","user":{"login":"euclio","id":1372438,"node_id":"MDQ6VXNlcjEzNzI0Mzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1372438?v=4","gravatar_id":"","url":"https://api.github.com/users/euclio","html_url":"https://github.com/euclio","followers_url":"https://api.github.com/users/euclio/followers","following_url":"https://api.github.com/users/euclio/following{/other_user}","gists_url":"https://api.github.com/users/euclio/gists{/gist_id}","starred_url":"https://api.github.com/users/euclio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euclio/subscriptions","organizations_url":"https://api.github.com/users/euclio/orgs","repos_url":"https://api.github.com/users/euclio/repos","events_url":"https://api.github.com/users/euclio/events{/privacy}","received_events_url":"https://api.github.com/users/euclio/received_events","type":"User","site_admin":false},"body":"Fixes #154 \r\n\r\nI put this behind a feature, because I'm not sure that there's a smarter way to detect ncurses 6.\r\n\r\nI used the following test program to test this:\r\n\r\n```rust\r\nextern crate ncurses;\r\n\r\nuse std::process;\r\n\r\nuse ncurses::*;\r\n\r\nfn failed() {\r\n    endwin();\r\n    println!(\"failed\");\r\n    process::exit(1);\r\n}\r\n\r\nfn main() {\r\n    initscr();\r\n    start_color();\r\n\r\n    let r = init_extended_color(COLOR_RED.into(), 255 * 1000 / 256, 100 * 1000 / 256, 0);\r\n    if r != OK {\r\n        failed();\r\n    }\r\n\r\n    let r = init_extended_pair(2, COLOR_RED.into(), COLOR_BLACK.into());\r\n    if r != OK {\r\n        failed();\r\n    }\r\n    attron(COLOR_PAIR(2));\r\n    printw(\"TRUECOLOR\");\r\n    refresh();\r\n\r\n    getch();\r\n    endwin();\r\n}\r\n```","created_at":"2018-06-12T15:29:09Z","updated_at":"2018-06-16T17:32:33Z","closed_at":"2018-06-16T17:32:33Z","merged_at":"2018-06-16T17:32:32Z","merge_commit_sha":"5f63c261efff480654e8ac9d39d00924aa746f22","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jeaye/ncurses-rs/pulls/155/commits","review_comments_url":"https://api.github.com/repos/jeaye/ncurses-rs/pulls/155/comments","review_comment_url":"https://api.github.com/repos/jeaye/ncurses-rs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jeaye/ncurses-rs/issues/155/comments","statuses_url":"https://api.github.com/repos/jeaye/ncurses-rs/statuses/b738c7df20bb0a83f95038808b47cf079b04b5cb","head":{"label":"euclio:extended-colors","ref":"extended-colors","sha":"b738c7df20bb0a83f95038808b47cf079b04b5cb","user":{"login":"euclio","id":1372438,"node_id":"MDQ6VXNlcjEzNzI0Mzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1372438?v=4","gravatar_id":"","url":"https://api.github.com/users/euclio","html_url":"https://github.com/euclio","followers_url":"https://api.github.com/users/euclio/followers","following_url":"https://api.github.com/users/euclio/following{/other_user}","gists_url":"https://api.github.com/users/euclio/gists{/gist_id}","starred_url":"https://api.github.com/users/euclio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euclio/subscriptions","organizations_url":"https://api.github.com/users/euclio/orgs","repos_url":"https://api.github.com/users/euclio/repos","events_url":"https://api.github.com/users/euclio/events{/privacy}","received_events_url":"https://api.github.com/users/euclio/received_events","type":"User","site_admin":false},"repo":{"id":137091718,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcwOTE3MTg=","name":"ncurses-rs","full_name":"euclio/ncurses-rs","owner":{"login":"euclio","id":1372438,"node_id":"MDQ6VXNlcjEzNzI0Mzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1372438?v=4","gravatar_id":"","url":"https://api.github.com/users/euclio","html_url":"https://github.com/euclio","followers_url":"https://api.github.com/users/euclio/followers","following_url":"https://api.github.com/users/euclio/following{/other_user}","gists_url":"https://api.github.com/users/euclio/gists{/gist_id}","starred_url":"https://api.github.com/users/euclio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euclio/subscriptions","organizations_url":"https://api.github.com/users/euclio/orgs","repos_url":"https://api.github.com/users/euclio/repos","events_url":"https://api.github.com/users/euclio/events{/privacy}","received_events_url":"https://api.github.com/users/euclio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/euclio/ncurses-rs","description":"A safe ncurses wrapper for Rust","fork":true,"url":"https://api.github.com/repos/euclio/ncurses-rs","forks_url":"https://api.github.com/repos/euclio/ncurses-rs/forks","keys_url":"https://api.github.com/repos/euclio/ncurses-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/euclio/ncurses-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/euclio/ncurses-rs/teams","hooks_url":"https://api.github.com/repos/euclio/ncurses-rs/hooks","issue_events_url":"https://api.github.com/repos/euclio/ncurses-rs/issues/events{/number}","events_url":"https://api.github.com/repos/euclio/ncurses-rs/events","assignees_url":"https://api.github.com/repos/euclio/ncurses-rs/assignees{/user}","branches_url":"https://api.github.com/repos/euclio/ncurses-rs/branches{/branch}","tags_url":"https://api.github.com/repos/euclio/ncurses-rs/tags","blobs_url":"https://api.github.com/repos/euclio/ncurses-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/euclio/ncurses-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/euclio/ncurses-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/euclio/ncurses-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/euclio/ncurses-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/euclio/ncurses-rs/languages","stargazers_url":"https://api.github.com/repos/euclio/ncurses-rs/stargazers","contributors_url":"https://api.github.com/repos/euclio/ncurses-rs/contributors","subscribers_url":"https://api.github.com/repos/euclio/ncurses-rs/subscribers","subscription_url":"https://api.github.com/repos/euclio/ncurses-rs/subscription","commits_url":"https://api.github.com/repos/euclio/ncurses-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/euclio/ncurses-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/euclio/ncurses-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/euclio/ncurses-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/euclio/ncurses-rs/contents/{+path}","compare_url":"https://api.github.com/repos/euclio/ncurses-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/euclio/ncurses-rs/merges","archive_url":"https://api.github.com/repos/euclio/ncurses-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/euclio/ncurses-rs/downloads","issues_url":"https://api.github.com/repos/euclio/ncurses-rs/issues{/number}","pulls_url":"https://api.github.com/repos/euclio/ncurses-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/euclio/ncurses-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/euclio/ncurses-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/euclio/ncurses-rs/labels{/name}","releases_url":"https://api.github.com/repos/euclio/ncurses-rs/releases{/id}","deployments_url":"https://api.github.com/repos/euclio/ncurses-rs/deployments","created_at":"2018-06-12T15:27:38Z","updated_at":"2018-06-12T15:27:40Z","pushed_at":"2018-06-16T17:29:18Z","git_url":"git://github.com/euclio/ncurses-rs.git","ssh_url":"git@github.com:euclio/ncurses-rs.git","clone_url":"https://github.com/euclio/ncurses-rs.git","svn_url":"https://github.com/euclio/ncurses-rs","homepage":null,"size":352,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jeaye:master","ref":"master","sha":"073a5959967654e4700b02d2fd3a1aae8d7aabbc","user":{"login":"jeaye","id":1057635,"node_id":"MDQ6VXNlcjEwNTc2MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/1057635?v=4","gravatar_id":"","url":"https://api.github.com/users/jeaye","html_url":"https://github.com/jeaye","followers_url":"https://api.github.com/users/jeaye/followers","following_url":"https://api.github.com/users/jeaye/following{/other_user}","gists_url":"https://api.github.com/users/jeaye/gists{/gist_id}","starred_url":"https://api.github.com/users/jeaye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeaye/subscriptions","organizations_url":"https://api.github.com/users/jeaye/orgs","repos_url":"https://api.github.com/users/jeaye/repos","events_url":"https://api.github.com/users/jeaye/events{/privacy}","received_events_url":"https://api.github.com/users/jeaye/received_events","type":"User","site_admin":false},"repo":{"id":13229684,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIyOTY4NA==","name":"ncurses-rs","full_name":"jeaye/ncurses-rs","owner":{"login":"jeaye","id":1057635,"node_id":"MDQ6VXNlcjEwNTc2MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/1057635?v=4","gravatar_id":"","url":"https://api.github.com/users/jeaye","html_url":"https://github.com/jeaye","followers_url":"https://api.github.com/users/jeaye/followers","following_url":"https://api.github.com/users/jeaye/following{/other_user}","gists_url":"https://api.github.com/users/jeaye/gists{/gist_id}","starred_url":"https://api.github.com/users/jeaye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeaye/subscriptions","organizations_url":"https://api.github.com/users/jeaye/orgs","repos_url":"https://api.github.com/users/jeaye/repos","events_url":"https://api.github.com/users/jeaye/events{/privacy}","received_events_url":"https://api.github.com/users/jeaye/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeaye/ncurses-rs","description":"A safe ncurses wrapper for Rust","fork":false,"url":"https://api.github.com/repos/jeaye/ncurses-rs","forks_url":"https://api.github.com/repos/jeaye/ncurses-rs/forks","keys_url":"https://api.github.com/repos/jeaye/ncurses-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeaye/ncurses-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeaye/ncurses-rs/teams","hooks_url":"https://api.github.com/repos/jeaye/ncurses-rs/hooks","issue_events_url":"https://api.github.com/repos/jeaye/ncurses-rs/issues/events{/number}","events_url":"https://api.github.com/repos/jeaye/ncurses-rs/events","assignees_url":"https://api.github.com/repos/jeaye/ncurses-rs/assignees{/user}","branches_url":"https://api.github.com/repos/jeaye/ncurses-rs/branches{/branch}","tags_url":"https://api.github.com/repos/jeaye/ncurses-rs/tags","blobs_url":"https://api.github.com/repos/jeaye/ncurses-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeaye/ncurses-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeaye/ncurses-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeaye/ncurses-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeaye/ncurses-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/jeaye/ncurses-rs/languages","stargazers_url":"https://api.github.com/repos/jeaye/ncurses-rs/stargazers","contributors_url":"https://api.github.com/repos/jeaye/ncurses-rs/contributors","subscribers_url":"https://api.github.com/repos/jeaye/ncurses-rs/subscribers","subscription_url":"https://api.github.com/repos/jeaye/ncurses-rs/subscription","commits_url":"https://api.github.com/repos/jeaye/ncurses-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeaye/ncurses-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeaye/ncurses-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeaye/ncurses-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeaye/ncurses-rs/contents/{+path}","compare_url":"https://api.github.com/repos/jeaye/ncurses-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeaye/ncurses-rs/merges","archive_url":"https://api.github.com/repos/jeaye/ncurses-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeaye/ncurses-rs/downloads","issues_url":"https://api.github.com/repos/jeaye/ncurses-rs/issues{/number}","pulls_url":"https://api.github.com/repos/jeaye/ncurses-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/jeaye/ncurses-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/jeaye/ncurses-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeaye/ncurses-rs/labels{/name}","releases_url":"https://api.github.com/repos/jeaye/ncurses-rs/releases{/id}","deployments_url":"https://api.github.com/repos/jeaye/ncurses-rs/deployments","created_at":"2013-09-30T22:56:02Z","updated_at":"2018-06-15T17:19:36Z","pushed_at":"2018-06-16T17:32:32Z","git_url":"git://github.com/jeaye/ncurses-rs.git","ssh_url":"git@github.com:jeaye/ncurses-rs.git","clone_url":"https://github.com/jeaye/ncurses-rs.git","svn_url":"https://github.com/jeaye/ncurses-rs","homepage":null,"size":353,"stargazers_count":362,"watchers_count":362,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":69,"open_issues":21,"watchers":362,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jeaye/ncurses-rs/pulls/155"},"html":{"href":"https://github.com/jeaye/ncurses-rs/pull/155"},"issue":{"href":"https://api.github.com/repos/jeaye/ncurses-rs/issues/155"},"comments":{"href":"https://api.github.com/repos/jeaye/ncurses-rs/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/jeaye/ncurses-rs/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/jeaye/ncurses-rs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jeaye/ncurses-rs/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/jeaye/ncurses-rs/statuses/b738c7df20bb0a83f95038808b47cf079b04b5cb"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jeaye","id":1057635,"node_id":"MDQ6VXNlcjEwNTc2MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/1057635?v=4","gravatar_id":"","url":"https://api.github.com/users/jeaye","html_url":"https://github.com/jeaye","followers_url":"https://api.github.com/users/jeaye/followers","following_url":"https://api.github.com/users/jeaye/following{/other_user}","gists_url":"https://api.github.com/users/jeaye/gists{/gist_id}","starred_url":"https://api.github.com/users/jeaye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeaye/subscriptions","organizations_url":"https://api.github.com/users/jeaye/orgs","repos_url":"https://api.github.com/users/jeaye/repos","events_url":"https://api.github.com/users/jeaye/events{/privacy}","received_events_url":"https://api.github.com/users/jeaye/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":31,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"jeaye"}}