{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/pure/pulls/comments/34948474","id":34948474,"diff_hunk":"@@ -47,6 +47,15 @@ prompt_pure_check_cmd_exec_time() {\n \t(($elapsed > ${PURE_CMD_MAX_EXEC_TIME:=5})) && prompt_pure_human_time $elapsed\n }\n \n+prompt_pure_clear_screen() {\n+\t# enable output to terminal\n+\tzle -I\n+\t# clear screen and move cursor to (0, 0)\n+\tprint -n \"\\e[2J\\e[0;0H\"","path":"pure.zsh","position":8,"original_position":8,"commit_id":"5cdac0ed77f817ab69dd10f07f6d4d562869d0f6","original_commit_id":"5cdac0ed77f817ab69dd10f07f6d4d562869d0f6","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"body":"Ok. Let's stick with single-quotes wherever possible for now then. We can always change later if that feels weird.","created_at":"2015-07-18T15:04:43Z","updated_at":"2015-07-18T15:04:43Z","html_url":"https://github.com/sindresorhus/pure/pull/147#discussion_r34948474","pull_request_url":"https://api.github.com/repos/sindresorhus/pure/pulls/147","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/pure/pulls/comments/34948474"},"html":{"href":"https://github.com/sindresorhus/pure/pull/147#discussion_r34948474"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/pure/pulls/147"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/pure/pulls/147","id":40289850,"html_url":"https://github.com/sindresorhus/pure/pull/147","diff_url":"https://github.com/sindresorhus/pure/pull/147.diff","patch_url":"https://github.com/sindresorhus/pure/pull/147.patch","issue_url":"https://api.github.com/repos/sindresorhus/pure/issues/147","number":147,"state":"open","locked":false,"title":"Clear screen fix","user":{"login":"mafredri","id":147409,"avatar_url":"https://avatars.githubusercontent.com/u/147409?v=3","gravatar_id":"","url":"https://api.github.com/users/mafredri","html_url":"https://github.com/mafredri","followers_url":"https://api.github.com/users/mafredri/followers","following_url":"https://api.github.com/users/mafredri/following{/other_user}","gists_url":"https://api.github.com/users/mafredri/gists{/gist_id}","starred_url":"https://api.github.com/users/mafredri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mafredri/subscriptions","organizations_url":"https://api.github.com/users/mafredri/orgs","repos_url":"https://api.github.com/users/mafredri/repos","events_url":"https://api.github.com/users/mafredri/events{/privacy}","received_events_url":"https://api.github.com/users/mafredri/received_events","type":"User","site_admin":false},"body":"As discussed in #145 This PR fixes clear screen in pure (where the preprompt is missing when issuing Ctrl+L).\r\n\r\nDue to third-party libraries doing whatever they want, I've decided to take a more fragile, but safer approach in this PR (see https://github.com/sindresorhus/pure/commit/4961520addf1afe298b07cf1f4e32c85fa083ca3 for details).","created_at":"2015-07-18T09:39:45Z","updated_at":"2015-07-18T15:04:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbab2415ea4d5b2a63c1d4988b86181ab4f9868e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/pure/pulls/147/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/pure/pulls/147/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/pure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/pure/issues/147/comments","statuses_url":"https://api.github.com/repos/sindresorhus/pure/statuses/5cdac0ed77f817ab69dd10f07f6d4d562869d0f6","head":{"label":"sindresorhus:clear-screen-fix","ref":"clear-screen-fix","sha":"5cdac0ed77f817ab69dd10f07f6d4d562869d0f6","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":5890857,"name":"pure","full_name":"sindresorhus/pure","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/pure","description":"Pretty, minimal and fast ZSH prompt","fork":false,"url":"https://api.github.com/repos/sindresorhus/pure","forks_url":"https://api.github.com/repos/sindresorhus/pure/forks","keys_url":"https://api.github.com/repos/sindresorhus/pure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/pure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/pure/teams","hooks_url":"https://api.github.com/repos/sindresorhus/pure/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/pure/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/pure/events","assignees_url":"https://api.github.com/repos/sindresorhus/pure/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/pure/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/pure/tags","blobs_url":"https://api.github.com/repos/sindresorhus/pure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/pure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/pure/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/pure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/pure/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/pure/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/pure/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/pure/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/pure/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/pure/subscription","commits_url":"https://api.github.com/repos/sindresorhus/pure/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/pure/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/pure/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/pure/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/pure/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/pure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/pure/merges","archive_url":"https://api.github.com/repos/sindresorhus/pure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/pure/downloads","issues_url":"https://api.github.com/repos/sindresorhus/pure/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/pure/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/pure/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/pure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/pure/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/pure/releases{/id}","created_at":"2012-09-20T18:14:58Z","updated_at":"2015-07-17T23:04:09Z","pushed_at":"2015-07-18T14:24:14Z","git_url":"git://github.com/sindresorhus/pure.git","ssh_url":"git@github.com:sindresorhus/pure.git","clone_url":"https://github.com/sindresorhus/pure.git","svn_url":"https://github.com/sindresorhus/pure","homepage":"","size":1190,"stargazers_count":1260,"watchers_count":1260,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":153,"mirror_url":null,"open_issues_count":7,"forks":153,"open_issues":7,"watchers":1260,"default_branch":"master"}},"base":{"label":"sindresorhus:master","ref":"master","sha":"2509a1fac0c145f57437d7fd6a2c0a06e55fa72c","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":5890857,"name":"pure","full_name":"sindresorhus/pure","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/pure","description":"Pretty, minimal and fast ZSH prompt","fork":false,"url":"https://api.github.com/repos/sindresorhus/pure","forks_url":"https://api.github.com/repos/sindresorhus/pure/forks","keys_url":"https://api.github.com/repos/sindresorhus/pure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/pure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/pure/teams","hooks_url":"https://api.github.com/repos/sindresorhus/pure/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/pure/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/pure/events","assignees_url":"https://api.github.com/repos/sindresorhus/pure/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/pure/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/pure/tags","blobs_url":"https://api.github.com/repos/sindresorhus/pure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/pure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/pure/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/pure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/pure/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/pure/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/pure/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/pure/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/pure/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/pure/subscription","commits_url":"https://api.github.com/repos/sindresorhus/pure/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/pure/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/pure/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/pure/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/pure/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/pure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/pure/merges","archive_url":"https://api.github.com/repos/sindresorhus/pure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/pure/downloads","issues_url":"https://api.github.com/repos/sindresorhus/pure/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/pure/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/pure/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/pure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/pure/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/pure/releases{/id}","created_at":"2012-09-20T18:14:58Z","updated_at":"2015-07-17T23:04:09Z","pushed_at":"2015-07-18T14:24:14Z","git_url":"git://github.com/sindresorhus/pure.git","ssh_url":"git@github.com:sindresorhus/pure.git","clone_url":"https://github.com/sindresorhus/pure.git","svn_url":"https://github.com/sindresorhus/pure","homepage":"","size":1190,"stargazers_count":1260,"watchers_count":1260,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":153,"mirror_url":null,"open_issues_count":7,"forks":153,"open_issues":7,"watchers":1260,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/pure/pulls/147"},"html":{"href":"https://github.com/sindresorhus/pure/pull/147"},"issue":{"href":"https://api.github.com/repos/sindresorhus/pure/issues/147"},"comments":{"href":"https://api.github.com/repos/sindresorhus/pure/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/pure/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/pure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/pure/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/pure/statuses/5cdac0ed77f817ab69dd10f07f6d4d562869d0f6"}}}}