{"action":"created","issue":{"url":"https://api.github.com/repos/mlafeldt/sharness/issues/27","labels_url":"https://api.github.com/repos/mlafeldt/sharness/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/mlafeldt/sharness/issues/27/comments","events_url":"https://api.github.com/repos/mlafeldt/sharness/issues/27/events","html_url":"https://github.com/mlafeldt/sharness/pull/27","id":88955899,"number":27,"title":"fix color support when tput needs ~/.terminfo","user":{"login":"richardhansen","id":1612291,"avatar_url":"https://avatars.githubusercontent.com/u/1612291?v=3","gravatar_id":"","url":"https://api.github.com/users/richardhansen","html_url":"https://github.com/richardhansen","followers_url":"https://api.github.com/users/richardhansen/followers","following_url":"https://api.github.com/users/richardhansen/following{/other_user}","gists_url":"https://api.github.com/users/richardhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/richardhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardhansen/subscriptions","organizations_url":"https://api.github.com/users/richardhansen/orgs","repos_url":"https://api.github.com/users/richardhansen/repos","events_url":"https://api.github.com/users/richardhansen/events{/privacy}","received_events_url":"https://api.github.com/users/richardhansen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-17T08:38:27Z","updated_at":"2015-06-25T06:06:42Z","closed_at":"2015-06-24T21:43:37Z","pull_request":{"url":"https://api.github.com/repos/mlafeldt/sharness/pulls/27","html_url":"https://github.com/mlafeldt/sharness/pull/27","diff_url":"https://github.com/mlafeldt/sharness/pull/27.diff","patch_url":"https://github.com/mlafeldt/sharness/pull/27.patch"},"body":"If `tput` needs `~/.terminfo` for the current `$TERM`, then `tput` will succeed before changing `HOME` to `$SHARNESS_TRASH_DIRECTORY` but fail afterward.  Rather than use `tput` after changing `HOME` and `TERM`, save the output of `tput` before changing either variable so that color support is guaranteed to work."},"comment":{"url":"https://api.github.com/repos/mlafeldt/sharness/issues/comments/115119591","html_url":"https://github.com/mlafeldt/sharness/pull/27#issuecomment-115119591","issue_url":"https://api.github.com/repos/mlafeldt/sharness/issues/27","id":115119591,"user":{"login":"richardhansen","id":1612291,"avatar_url":"https://avatars.githubusercontent.com/u/1612291?v=3","gravatar_id":"","url":"https://api.github.com/users/richardhansen","html_url":"https://github.com/richardhansen","followers_url":"https://api.github.com/users/richardhansen/followers","following_url":"https://api.github.com/users/richardhansen/following{/other_user}","gists_url":"https://api.github.com/users/richardhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/richardhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardhansen/subscriptions","organizations_url":"https://api.github.com/users/richardhansen/orgs","repos_url":"https://api.github.com/users/richardhansen/repos","events_url":"https://api.github.com/users/richardhansen/events{/privacy}","received_events_url":"https://api.github.com/users/richardhansen/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T06:06:42Z","updated_at":"2015-06-25T06:06:42Z","body":"Thank you!"}}