{"action":"reopened","number":1,"pull_request":{"url":"https://api.github.com/repos/nhooyr/terminfo/pulls/1","id":74370193,"html_url":"https://github.com/nhooyr/terminfo/pull/1","diff_url":"https://github.com/nhooyr/terminfo/pull/1.diff","patch_url":"https://github.com/nhooyr/terminfo/pull/1.patch","issue_url":"https://api.github.com/repos/nhooyr/terminfo/issues/1","number":1,"state":"open","locked":false,"title":"Add /etc/terminfo and /lib/terminfo to the search path","user":{"login":"charithe","id":1127094,"avatar_url":"https://avatars.githubusercontent.com/u/1127094?v=3","gravatar_id":"","url":"https://api.github.com/users/charithe","html_url":"https://github.com/charithe","followers_url":"https://api.github.com/users/charithe/followers","following_url":"https://api.github.com/users/charithe/following{/other_user}","gists_url":"https://api.github.com/users/charithe/gists{/gist_id}","starred_url":"https://api.github.com/users/charithe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charithe/subscriptions","organizations_url":"https://api.github.com/users/charithe/orgs","repos_url":"https://api.github.com/users/charithe/repos","events_url":"https://api.github.com/users/charithe/events{/privacy}","received_events_url":"https://api.github.com/users/charithe/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nApparently the man page is not quite accurate regarding the terminfo search path on Debian derivatives (https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/1098373).  I was trying to debug why your `color` package does not produce coloured output and traced it back to this issue in the `terminfo` package.\r\n\r\nRunning tests on the `color` package produces the following output:\r\n\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x5e pc=0x4ff696]\r\n\r\ngoroutine 1 [running]:\r\npanic(0x56e7e0, 0xc82000a1b0)\r\n\t/usr/local/go/src/runtime/panic.go:481 +0x3e6\r\ngithub.com/nhooyr/terminfo.(*Terminfo).Color(0x0, 0x1, 0x4, 0x0, 0x0)\r\n\t/home/cell/git/go/src/github.com/nhooyr/terminfo/terminfo.go:104 +0x56\r\ngithub.com/nhooyr/color.init()\r\n\t/home/cell/git/go/src/github.com/nhooyr/color/highlight_test.go:68 +0x2ca\r\nmain.init()\r\n\tgithub.com/nhooyr/color/_test/_testmain.go:86 +0x4a\r\nexit status 2\r\n``` \r\n\r\nRunning tests on the `terminfo` package produces the following output:\r\n\r\n```\r\n--- FAIL: TestOpen (0.00s)\r\n\tterminfo_test.go:14: open /usr/share/terminfo/78/xterm: no such file or directory\r\n```\r\n\r\nAfter applying the proposed patch in this PR, tests pass on both packages and the `color` package starts producing colours again. ","created_at":"2016-06-19T18:19:24Z","updated_at":"2016-06-19T18:37:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6797296dd2e3bbd4dfe916461edef9d4f46755eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nhooyr/terminfo/pulls/1/commits","review_comments_url":"https://api.github.com/repos/nhooyr/terminfo/pulls/1/comments","review_comment_url":"https://api.github.com/repos/nhooyr/terminfo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nhooyr/terminfo/issues/1/comments","statuses_url":"https://api.github.com/repos/nhooyr/terminfo/statuses/198e0b21362ccbc3bee9e01ece3adc917a068560","head":{"label":"charithe:master","ref":"master","sha":"198e0b21362ccbc3bee9e01ece3adc917a068560","user":{"login":"charithe","id":1127094,"avatar_url":"https://avatars.githubusercontent.com/u/1127094?v=3","gravatar_id":"","url":"https://api.github.com/users/charithe","html_url":"https://github.com/charithe","followers_url":"https://api.github.com/users/charithe/followers","following_url":"https://api.github.com/users/charithe/following{/other_user}","gists_url":"https://api.github.com/users/charithe/gists{/gist_id}","starred_url":"https://api.github.com/users/charithe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charithe/subscriptions","organizations_url":"https://api.github.com/users/charithe/orgs","repos_url":"https://api.github.com/users/charithe/repos","events_url":"https://api.github.com/users/charithe/events{/privacy}","received_events_url":"https://api.github.com/users/charithe/received_events","type":"User","site_admin":false},"repo":{"id":61492380,"name":"terminfo","full_name":"charithe/terminfo","owner":{"login":"charithe","id":1127094,"avatar_url":"https://avatars.githubusercontent.com/u/1127094?v=3","gravatar_id":"","url":"https://api.github.com/users/charithe","html_url":"https://github.com/charithe","followers_url":"https://api.github.com/users/charithe/followers","following_url":"https://api.github.com/users/charithe/following{/other_user}","gists_url":"https://api.github.com/users/charithe/gists{/gist_id}","starred_url":"https://api.github.com/users/charithe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charithe/subscriptions","organizations_url":"https://api.github.com/users/charithe/orgs","repos_url":"https://api.github.com/users/charithe/repos","events_url":"https://api.github.com/users/charithe/events{/privacy}","received_events_url":"https://api.github.com/users/charithe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/charithe/terminfo","description":"A terminfo package in pure go!","fork":true,"url":"https://api.github.com/repos/charithe/terminfo","forks_url":"https://api.github.com/repos/charithe/terminfo/forks","keys_url":"https://api.github.com/repos/charithe/terminfo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/charithe/terminfo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/charithe/terminfo/teams","hooks_url":"https://api.github.com/repos/charithe/terminfo/hooks","issue_events_url":"https://api.github.com/repos/charithe/terminfo/issues/events{/number}","events_url":"https://api.github.com/repos/charithe/terminfo/events","assignees_url":"https://api.github.com/repos/charithe/terminfo/assignees{/user}","branches_url":"https://api.github.com/repos/charithe/terminfo/branches{/branch}","tags_url":"https://api.github.com/repos/charithe/terminfo/tags","blobs_url":"https://api.github.com/repos/charithe/terminfo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/charithe/terminfo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/charithe/terminfo/git/refs{/sha}","trees_url":"https://api.github.com/repos/charithe/terminfo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/charithe/terminfo/statuses/{sha}","languages_url":"https://api.github.com/repos/charithe/terminfo/languages","stargazers_url":"https://api.github.com/repos/charithe/terminfo/stargazers","contributors_url":"https://api.github.com/repos/charithe/terminfo/contributors","subscribers_url":"https://api.github.com/repos/charithe/terminfo/subscribers","subscription_url":"https://api.github.com/repos/charithe/terminfo/subscription","commits_url":"https://api.github.com/repos/charithe/terminfo/commits{/sha}","git_commits_url":"https://api.github.com/repos/charithe/terminfo/git/commits{/sha}","comments_url":"https://api.github.com/repos/charithe/terminfo/comments{/number}","issue_comment_url":"https://api.github.com/repos/charithe/terminfo/issues/comments{/number}","contents_url":"https://api.github.com/repos/charithe/terminfo/contents/{+path}","compare_url":"https://api.github.com/repos/charithe/terminfo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/charithe/terminfo/merges","archive_url":"https://api.github.com/repos/charithe/terminfo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/charithe/terminfo/downloads","issues_url":"https://api.github.com/repos/charithe/terminfo/issues{/number}","pulls_url":"https://api.github.com/repos/charithe/terminfo/pulls{/number}","milestones_url":"https://api.github.com/repos/charithe/terminfo/milestones{/number}","notifications_url":"https://api.github.com/repos/charithe/terminfo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/charithe/terminfo/labels{/name}","releases_url":"https://api.github.com/repos/charithe/terminfo/releases{/id}","deployments_url":"https://api.github.com/repos/charithe/terminfo/deployments","created_at":"2016-06-19T17:43:20Z","updated_at":"2016-06-19T17:43:21Z","pushed_at":"2016-06-19T18:07:26Z","git_url":"git://github.com/charithe/terminfo.git","ssh_url":"git@github.com:charithe/terminfo.git","clone_url":"https://github.com/charithe/terminfo.git","svn_url":"https://github.com/charithe/terminfo","homepage":null,"size":72,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"nhooyr:master","ref":"master","sha":"3b298009f6b9bfdb6a55594b1d439fac75f50299","user":{"login":"nhooyr","id":10180857,"avatar_url":"https://avatars.githubusercontent.com/u/10180857?v=3","gravatar_id":"","url":"https://api.github.com/users/nhooyr","html_url":"https://github.com/nhooyr","followers_url":"https://api.github.com/users/nhooyr/followers","following_url":"https://api.github.com/users/nhooyr/following{/other_user}","gists_url":"https://api.github.com/users/nhooyr/gists{/gist_id}","starred_url":"https://api.github.com/users/nhooyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhooyr/subscriptions","organizations_url":"https://api.github.com/users/nhooyr/orgs","repos_url":"https://api.github.com/users/nhooyr/repos","events_url":"https://api.github.com/users/nhooyr/events{/privacy}","received_events_url":"https://api.github.com/users/nhooyr/received_events","type":"User","site_admin":false},"repo":{"id":56802292,"name":"terminfo","full_name":"nhooyr/terminfo","owner":{"login":"nhooyr","id":10180857,"avatar_url":"https://avatars.githubusercontent.com/u/10180857?v=3","gravatar_id":"","url":"https://api.github.com/users/nhooyr","html_url":"https://github.com/nhooyr","followers_url":"https://api.github.com/users/nhooyr/followers","following_url":"https://api.github.com/users/nhooyr/following{/other_user}","gists_url":"https://api.github.com/users/nhooyr/gists{/gist_id}","starred_url":"https://api.github.com/users/nhooyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhooyr/subscriptions","organizations_url":"https://api.github.com/users/nhooyr/orgs","repos_url":"https://api.github.com/users/nhooyr/repos","events_url":"https://api.github.com/users/nhooyr/events{/privacy}","received_events_url":"https://api.github.com/users/nhooyr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nhooyr/terminfo","description":"A terminfo package in pure go!","fork":false,"url":"https://api.github.com/repos/nhooyr/terminfo","forks_url":"https://api.github.com/repos/nhooyr/terminfo/forks","keys_url":"https://api.github.com/repos/nhooyr/terminfo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhooyr/terminfo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhooyr/terminfo/teams","hooks_url":"https://api.github.com/repos/nhooyr/terminfo/hooks","issue_events_url":"https://api.github.com/repos/nhooyr/terminfo/issues/events{/number}","events_url":"https://api.github.com/repos/nhooyr/terminfo/events","assignees_url":"https://api.github.com/repos/nhooyr/terminfo/assignees{/user}","branches_url":"https://api.github.com/repos/nhooyr/terminfo/branches{/branch}","tags_url":"https://api.github.com/repos/nhooyr/terminfo/tags","blobs_url":"https://api.github.com/repos/nhooyr/terminfo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhooyr/terminfo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhooyr/terminfo/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhooyr/terminfo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhooyr/terminfo/statuses/{sha}","languages_url":"https://api.github.com/repos/nhooyr/terminfo/languages","stargazers_url":"https://api.github.com/repos/nhooyr/terminfo/stargazers","contributors_url":"https://api.github.com/repos/nhooyr/terminfo/contributors","subscribers_url":"https://api.github.com/repos/nhooyr/terminfo/subscribers","subscription_url":"https://api.github.com/repos/nhooyr/terminfo/subscription","commits_url":"https://api.github.com/repos/nhooyr/terminfo/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhooyr/terminfo/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhooyr/terminfo/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhooyr/terminfo/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhooyr/terminfo/contents/{+path}","compare_url":"https://api.github.com/repos/nhooyr/terminfo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhooyr/terminfo/merges","archive_url":"https://api.github.com/repos/nhooyr/terminfo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhooyr/terminfo/downloads","issues_url":"https://api.github.com/repos/nhooyr/terminfo/issues{/number}","pulls_url":"https://api.github.com/repos/nhooyr/terminfo/pulls{/number}","milestones_url":"https://api.github.com/repos/nhooyr/terminfo/milestones{/number}","notifications_url":"https://api.github.com/repos/nhooyr/terminfo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhooyr/terminfo/labels{/name}","releases_url":"https://api.github.com/repos/nhooyr/terminfo/releases{/id}","deployments_url":"https://api.github.com/repos/nhooyr/terminfo/deployments","created_at":"2016-04-21T20:04:50Z","updated_at":"2016-04-21T21:31:25Z","pushed_at":"2016-06-19T18:19:24Z","git_url":"git://github.com/nhooyr/terminfo.git","ssh_url":"git@github.com:nhooyr/terminfo.git","clone_url":"https://github.com/nhooyr/terminfo.git","svn_url":"https://github.com/nhooyr/terminfo","homepage":null,"size":72,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nhooyr/terminfo/pulls/1"},"html":{"href":"https://github.com/nhooyr/terminfo/pull/1"},"issue":{"href":"https://api.github.com/repos/nhooyr/terminfo/issues/1"},"comments":{"href":"https://api.github.com/repos/nhooyr/terminfo/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/nhooyr/terminfo/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/nhooyr/terminfo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nhooyr/terminfo/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/nhooyr/terminfo/statuses/198e0b21362ccbc3bee9e01ece3adc917a068560"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":6,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"nhooyr"}}