{"action":"created","comment":{"url":"https://api.github.com/repos/crigler/dtach/pulls/comments/80558576","id":80558576,"diff_hunk":"@@ -41,8 +41,11 @@ restore_term(void)\n \ttcsetattr(0, TCSADRAIN, &orig_term);\n \n \t/* Make cursor visible. Assumes VT100. */\n-\tprintf(\"\\033[?25h\");\n+\tif (!no_ansiterm)\n+\t    printf(\"\\033[?25h\");\n \tfflush(stdout);\n+\tif (no_ansiterm)\n+\t    (void)system(\"tput init 2>/dev/null\");","path":"attach.c","position":9,"original_position":9,"commit_id":"e14633c37d99c54bf0664af5edb7a10c07d39b77","original_commit_id":"e14633c37d99c54bf0664af5edb7a10c07d39b77","user":{"login":"domo141","id":2246574,"avatar_url":"https://avatars.githubusercontent.com/u/2246574?v=3","gravatar_id":"","url":"https://api.github.com/users/domo141","html_url":"https://github.com/domo141","followers_url":"https://api.github.com/users/domo141/followers","following_url":"https://api.github.com/users/domo141/following{/other_user}","gists_url":"https://api.github.com/users/domo141/gists{/gist_id}","starred_url":"https://api.github.com/users/domo141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domo141/subscriptions","organizations_url":"https://api.github.com/users/domo141/orgs","repos_url":"https://api.github.com/users/domo141/repos","events_url":"https://api.github.com/users/domo141/events{/privacy}","received_events_url":"https://api.github.com/users/domo141/received_events","type":"User","site_admin":false},"body":"I'd like to have this","created_at":"2016-09-26T19:56:46Z","updated_at":"2016-09-26T19:56:46Z","html_url":"https://github.com/crigler/dtach/pull/5#discussion_r80558576","pull_request_url":"https://api.github.com/repos/crigler/dtach/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/crigler/dtach/pulls/comments/80558576"},"html":{"href":"https://github.com/crigler/dtach/pull/5#discussion_r80558576"},"pull_request":{"href":"https://api.github.com/repos/crigler/dtach/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/crigler/dtach/pulls/5","id":74952771,"html_url":"https://github.com/crigler/dtach/pull/5","diff_url":"https://github.com/crigler/dtach/pull/5.diff","patch_url":"https://github.com/crigler/dtach/pull/5.patch","issue_url":"https://api.github.com/repos/crigler/dtach/issues/5","number":5,"state":"open","locked":false,"title":"Two small patches","user":{"login":"rdebath","id":5853223,"avatar_url":"https://avatars.githubusercontent.com/u/5853223?v=3","gravatar_id":"","url":"https://api.github.com/users/rdebath","html_url":"https://github.com/rdebath","followers_url":"https://api.github.com/users/rdebath/followers","following_url":"https://api.github.com/users/rdebath/following{/other_user}","gists_url":"https://api.github.com/users/rdebath/gists{/gist_id}","starred_url":"https://api.github.com/users/rdebath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdebath/subscriptions","organizations_url":"https://api.github.com/users/rdebath/orgs","repos_url":"https://api.github.com/users/rdebath/repos","events_url":"https://api.github.com/users/rdebath/events{/privacy}","received_events_url":"https://api.github.com/users/rdebath/received_events","type":"User","site_admin":false},"body":"The first is to simply make the socket readable only for the user (only of any note if you're putting them into /tmp)\r\n\r\nThe second is an option to suppress the ANSI terminal assumptions specifically:\r\n*  Running `tput init` instead of `printf(\"\\033[?25h\");`\r\n*  Don't clear the screen when attaching to an existing session.\r\n","created_at":"2016-06-23T13:16:27Z","updated_at":"2016-09-26T19:56:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca008de89efeab1c95f41d236a3a64f0b7240de2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/crigler/dtach/pulls/5/commits","review_comments_url":"https://api.github.com/repos/crigler/dtach/pulls/5/comments","review_comment_url":"https://api.github.com/repos/crigler/dtach/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crigler/dtach/issues/5/comments","statuses_url":"https://api.github.com/repos/crigler/dtach/statuses/e14633c37d99c54bf0664af5edb7a10c07d39b77","head":{"label":"rdebath:master","ref":"master","sha":"e14633c37d99c54bf0664af5edb7a10c07d39b77","user":{"login":"rdebath","id":5853223,"avatar_url":"https://avatars.githubusercontent.com/u/5853223?v=3","gravatar_id":"","url":"https://api.github.com/users/rdebath","html_url":"https://github.com/rdebath","followers_url":"https://api.github.com/users/rdebath/followers","following_url":"https://api.github.com/users/rdebath/following{/other_user}","gists_url":"https://api.github.com/users/rdebath/gists{/gist_id}","starred_url":"https://api.github.com/users/rdebath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdebath/subscriptions","organizations_url":"https://api.github.com/users/rdebath/orgs","repos_url":"https://api.github.com/users/rdebath/repos","events_url":"https://api.github.com/users/rdebath/events{/privacy}","received_events_url":"https://api.github.com/users/rdebath/received_events","type":"User","site_admin":false},"repo":{"id":61806038,"name":"dtach","full_name":"rdebath/dtach","owner":{"login":"rdebath","id":5853223,"avatar_url":"https://avatars.githubusercontent.com/u/5853223?v=3","gravatar_id":"","url":"https://api.github.com/users/rdebath","html_url":"https://github.com/rdebath","followers_url":"https://api.github.com/users/rdebath/followers","following_url":"https://api.github.com/users/rdebath/following{/other_user}","gists_url":"https://api.github.com/users/rdebath/gists{/gist_id}","starred_url":"https://api.github.com/users/rdebath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdebath/subscriptions","organizations_url":"https://api.github.com/users/rdebath/orgs","repos_url":"https://api.github.com/users/rdebath/repos","events_url":"https://api.github.com/users/rdebath/events{/privacy}","received_events_url":"https://api.github.com/users/rdebath/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rdebath/dtach","description":"A simple program that emulates the detach feature of screen","fork":true,"url":"https://api.github.com/repos/rdebath/dtach","forks_url":"https://api.github.com/repos/rdebath/dtach/forks","keys_url":"https://api.github.com/repos/rdebath/dtach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rdebath/dtach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rdebath/dtach/teams","hooks_url":"https://api.github.com/repos/rdebath/dtach/hooks","issue_events_url":"https://api.github.com/repos/rdebath/dtach/issues/events{/number}","events_url":"https://api.github.com/repos/rdebath/dtach/events","assignees_url":"https://api.github.com/repos/rdebath/dtach/assignees{/user}","branches_url":"https://api.github.com/repos/rdebath/dtach/branches{/branch}","tags_url":"https://api.github.com/repos/rdebath/dtach/tags","blobs_url":"https://api.github.com/repos/rdebath/dtach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rdebath/dtach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rdebath/dtach/git/refs{/sha}","trees_url":"https://api.github.com/repos/rdebath/dtach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rdebath/dtach/statuses/{sha}","languages_url":"https://api.github.com/repos/rdebath/dtach/languages","stargazers_url":"https://api.github.com/repos/rdebath/dtach/stargazers","contributors_url":"https://api.github.com/repos/rdebath/dtach/contributors","subscribers_url":"https://api.github.com/repos/rdebath/dtach/subscribers","subscription_url":"https://api.github.com/repos/rdebath/dtach/subscription","commits_url":"https://api.github.com/repos/rdebath/dtach/commits{/sha}","git_commits_url":"https://api.github.com/repos/rdebath/dtach/git/commits{/sha}","comments_url":"https://api.github.com/repos/rdebath/dtach/comments{/number}","issue_comment_url":"https://api.github.com/repos/rdebath/dtach/issues/comments{/number}","contents_url":"https://api.github.com/repos/rdebath/dtach/contents/{+path}","compare_url":"https://api.github.com/repos/rdebath/dtach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rdebath/dtach/merges","archive_url":"https://api.github.com/repos/rdebath/dtach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rdebath/dtach/downloads","issues_url":"https://api.github.com/repos/rdebath/dtach/issues{/number}","pulls_url":"https://api.github.com/repos/rdebath/dtach/pulls{/number}","milestones_url":"https://api.github.com/repos/rdebath/dtach/milestones{/number}","notifications_url":"https://api.github.com/repos/rdebath/dtach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rdebath/dtach/labels{/name}","releases_url":"https://api.github.com/repos/rdebath/dtach/releases{/id}","deployments_url":"https://api.github.com/repos/rdebath/dtach/deployments","created_at":"2016-06-23T13:09:58Z","updated_at":"2016-06-23T13:09:59Z","pushed_at":"2016-06-23T13:10:29Z","git_url":"git://github.com/rdebath/dtach.git","ssh_url":"git@github.com:rdebath/dtach.git","clone_url":"https://github.com/rdebath/dtach.git","svn_url":"https://github.com/rdebath/dtach","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"C","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":"crigler:master","ref":"master","sha":"7acac922770597f5da5df7b290078770d20dac32","user":{"login":"crigler","id":8346145,"avatar_url":"https://avatars.githubusercontent.com/u/8346145?v=3","gravatar_id":"","url":"https://api.github.com/users/crigler","html_url":"https://github.com/crigler","followers_url":"https://api.github.com/users/crigler/followers","following_url":"https://api.github.com/users/crigler/following{/other_user}","gists_url":"https://api.github.com/users/crigler/gists{/gist_id}","starred_url":"https://api.github.com/users/crigler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crigler/subscriptions","organizations_url":"https://api.github.com/users/crigler/orgs","repos_url":"https://api.github.com/users/crigler/repos","events_url":"https://api.github.com/users/crigler/events{/privacy}","received_events_url":"https://api.github.com/users/crigler/received_events","type":"User","site_admin":false},"repo":{"id":39311903,"name":"dtach","full_name":"crigler/dtach","owner":{"login":"crigler","id":8346145,"avatar_url":"https://avatars.githubusercontent.com/u/8346145?v=3","gravatar_id":"","url":"https://api.github.com/users/crigler","html_url":"https://github.com/crigler","followers_url":"https://api.github.com/users/crigler/followers","following_url":"https://api.github.com/users/crigler/following{/other_user}","gists_url":"https://api.github.com/users/crigler/gists{/gist_id}","starred_url":"https://api.github.com/users/crigler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crigler/subscriptions","organizations_url":"https://api.github.com/users/crigler/orgs","repos_url":"https://api.github.com/users/crigler/repos","events_url":"https://api.github.com/users/crigler/events{/privacy}","received_events_url":"https://api.github.com/users/crigler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crigler/dtach","description":"A simple program that emulates the detach feature of screen","fork":false,"url":"https://api.github.com/repos/crigler/dtach","forks_url":"https://api.github.com/repos/crigler/dtach/forks","keys_url":"https://api.github.com/repos/crigler/dtach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crigler/dtach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crigler/dtach/teams","hooks_url":"https://api.github.com/repos/crigler/dtach/hooks","issue_events_url":"https://api.github.com/repos/crigler/dtach/issues/events{/number}","events_url":"https://api.github.com/repos/crigler/dtach/events","assignees_url":"https://api.github.com/repos/crigler/dtach/assignees{/user}","branches_url":"https://api.github.com/repos/crigler/dtach/branches{/branch}","tags_url":"https://api.github.com/repos/crigler/dtach/tags","blobs_url":"https://api.github.com/repos/crigler/dtach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crigler/dtach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crigler/dtach/git/refs{/sha}","trees_url":"https://api.github.com/repos/crigler/dtach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crigler/dtach/statuses/{sha}","languages_url":"https://api.github.com/repos/crigler/dtach/languages","stargazers_url":"https://api.github.com/repos/crigler/dtach/stargazers","contributors_url":"https://api.github.com/repos/crigler/dtach/contributors","subscribers_url":"https://api.github.com/repos/crigler/dtach/subscribers","subscription_url":"https://api.github.com/repos/crigler/dtach/subscription","commits_url":"https://api.github.com/repos/crigler/dtach/commits{/sha}","git_commits_url":"https://api.github.com/repos/crigler/dtach/git/commits{/sha}","comments_url":"https://api.github.com/repos/crigler/dtach/comments{/number}","issue_comment_url":"https://api.github.com/repos/crigler/dtach/issues/comments{/number}","contents_url":"https://api.github.com/repos/crigler/dtach/contents/{+path}","compare_url":"https://api.github.com/repos/crigler/dtach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crigler/dtach/merges","archive_url":"https://api.github.com/repos/crigler/dtach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crigler/dtach/downloads","issues_url":"https://api.github.com/repos/crigler/dtach/issues{/number}","pulls_url":"https://api.github.com/repos/crigler/dtach/pulls{/number}","milestones_url":"https://api.github.com/repos/crigler/dtach/milestones{/number}","notifications_url":"https://api.github.com/repos/crigler/dtach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crigler/dtach/labels{/name}","releases_url":"https://api.github.com/repos/crigler/dtach/releases{/id}","deployments_url":"https://api.github.com/repos/crigler/dtach/deployments","created_at":"2015-07-18T20:34:12Z","updated_at":"2016-09-05T16:31:41Z","pushed_at":"2016-06-23T13:16:27Z","git_url":"git://github.com/crigler/dtach.git","ssh_url":"git@github.com:crigler/dtach.git","clone_url":"https://github.com/crigler/dtach.git","svn_url":"https://github.com/crigler/dtach","homepage":null,"size":137,"stargazers_count":26,"watchers_count":26,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crigler/dtach/pulls/5"},"html":{"href":"https://github.com/crigler/dtach/pull/5"},"issue":{"href":"https://api.github.com/repos/crigler/dtach/issues/5"},"comments":{"href":"https://api.github.com/repos/crigler/dtach/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/crigler/dtach/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/crigler/dtach/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crigler/dtach/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/crigler/dtach/statuses/e14633c37d99c54bf0664af5edb7a10c07d39b77"}}}}
{"actor":{"display_login":"domo141"}}