{"action":"opened","number":24,"pull_request":{"url":"https://api.github.com/repos/toejough/ugetch/pulls/24","id":40291721,"html_url":"https://github.com/toejough/ugetch/pull/24","diff_url":"https://github.com/toejough/ugetch/pull/24.diff","patch_url":"https://github.com/toejough/ugetch/pull/24.patch","issue_url":"https://api.github.com/repos/toejough/ugetch/issues/24","number":24,"state":"open","locked":false,"title":"Summary: Fixes #7 - tab support","user":{"login":"toejough","id":5317312,"avatar_url":"https://avatars.githubusercontent.com/u/5317312?v=3","gravatar_id":"","url":"https://api.github.com/users/toejough","html_url":"https://github.com/toejough","followers_url":"https://api.github.com/users/toejough/followers","following_url":"https://api.github.com/users/toejough/following{/other_user}","gists_url":"https://api.github.com/users/toejough/gists{/gist_id}","starred_url":"https://api.github.com/users/toejough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toejough/subscriptions","organizations_url":"https://api.github.com/users/toejough/orgs","repos_url":"https://api.github.com/users/toejough/repos","events_url":"https://api.github.com/users/toejough/events{/privacy}","received_events_url":"https://api.github.com/users/toejough/received_events","type":"User","site_admin":false},"body":"**Problem:**\r\nNo support for catching tabs\r\n\r\n**Analysis:**\r\nTab-completion is a common thing to do with low-level input CLI control.\r\nWe should enable it by allowing users to catch when the tab key is\r\npressed.\r\n\r\nReturn 'TAB' instead of a character.  This is generally a control, along\r\nthe same lines as 'enter', and arrow keys, home key, etc.  At least,\r\nthat's the use case being targeted.  Returning a whole string is\r\noverloading the idea of a \"key\", but it's lighter-weight than returning\r\nan object you have to parse for every key.\r\n\r\nI might still implement things that way in the end (objects), but I'm\r\nnot going to until necessary.  Using a string is still unambiguous\r\nenough, because other characters are single characters, rather than\r\nstrings, and even multi-char unicode \"characters\" are not going to\r\noverlap with the strings being used ('TAB', 'UP', 'DOWN', etc).\r\n\r\n**Testing:**\r\nAdded a test which uses the '\\t' key, as well as the control-i combo.\r\n\r\n**Documentation:**\r\nAdded description of return value for tab.","created_at":"2015-07-18T12:50:40Z","updated_at":"2015-07-18T12:50:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/toejough/ugetch/pulls/24/commits","review_comments_url":"https://api.github.com/repos/toejough/ugetch/pulls/24/comments","review_comment_url":"https://api.github.com/repos/toejough/ugetch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/toejough/ugetch/issues/24/comments","statuses_url":"https://api.github.com/repos/toejough/ugetch/statuses/8b9811becf804dee0d489754b961168d23c65fea","head":{"label":"toejough:issue.7.tab-key","ref":"issue.7.tab-key","sha":"8b9811becf804dee0d489754b961168d23c65fea","user":{"login":"toejough","id":5317312,"avatar_url":"https://avatars.githubusercontent.com/u/5317312?v=3","gravatar_id":"","url":"https://api.github.com/users/toejough","html_url":"https://github.com/toejough","followers_url":"https://api.github.com/users/toejough/followers","following_url":"https://api.github.com/users/toejough/following{/other_user}","gists_url":"https://api.github.com/users/toejough/gists{/gist_id}","starred_url":"https://api.github.com/users/toejough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toejough/subscriptions","organizations_url":"https://api.github.com/users/toejough/orgs","repos_url":"https://api.github.com/users/toejough/repos","events_url":"https://api.github.com/users/toejough/events{/privacy}","received_events_url":"https://api.github.com/users/toejough/received_events","type":"User","site_admin":false},"repo":{"id":38929526,"name":"ugetch","full_name":"toejough/ugetch","owner":{"login":"toejough","id":5317312,"avatar_url":"https://avatars.githubusercontent.com/u/5317312?v=3","gravatar_id":"","url":"https://api.github.com/users/toejough","html_url":"https://github.com/toejough","followers_url":"https://api.github.com/users/toejough/followers","following_url":"https://api.github.com/users/toejough/following{/other_user}","gists_url":"https://api.github.com/users/toejough/gists{/gist_id}","starred_url":"https://api.github.com/users/toejough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toejough/subscriptions","organizations_url":"https://api.github.com/users/toejough/orgs","repos_url":"https://api.github.com/users/toejough/repos","events_url":"https://api.github.com/users/toejough/events{/privacy}","received_events_url":"https://api.github.com/users/toejough/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toejough/ugetch","description":"utf-8 getch, with support for arrows, tab, echoing, etc","fork":false,"url":"https://api.github.com/repos/toejough/ugetch","forks_url":"https://api.github.com/repos/toejough/ugetch/forks","keys_url":"https://api.github.com/repos/toejough/ugetch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toejough/ugetch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toejough/ugetch/teams","hooks_url":"https://api.github.com/repos/toejough/ugetch/hooks","issue_events_url":"https://api.github.com/repos/toejough/ugetch/issues/events{/number}","events_url":"https://api.github.com/repos/toejough/ugetch/events","assignees_url":"https://api.github.com/repos/toejough/ugetch/assignees{/user}","branches_url":"https://api.github.com/repos/toejough/ugetch/branches{/branch}","tags_url":"https://api.github.com/repos/toejough/ugetch/tags","blobs_url":"https://api.github.com/repos/toejough/ugetch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toejough/ugetch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toejough/ugetch/git/refs{/sha}","trees_url":"https://api.github.com/repos/toejough/ugetch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toejough/ugetch/statuses/{sha}","languages_url":"https://api.github.com/repos/toejough/ugetch/languages","stargazers_url":"https://api.github.com/repos/toejough/ugetch/stargazers","contributors_url":"https://api.github.com/repos/toejough/ugetch/contributors","subscribers_url":"https://api.github.com/repos/toejough/ugetch/subscribers","subscription_url":"https://api.github.com/repos/toejough/ugetch/subscription","commits_url":"https://api.github.com/repos/toejough/ugetch/commits{/sha}","git_commits_url":"https://api.github.com/repos/toejough/ugetch/git/commits{/sha}","comments_url":"https://api.github.com/repos/toejough/ugetch/comments{/number}","issue_comment_url":"https://api.github.com/repos/toejough/ugetch/issues/comments{/number}","contents_url":"https://api.github.com/repos/toejough/ugetch/contents/{+path}","compare_url":"https://api.github.com/repos/toejough/ugetch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toejough/ugetch/merges","archive_url":"https://api.github.com/repos/toejough/ugetch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toejough/ugetch/downloads","issues_url":"https://api.github.com/repos/toejough/ugetch/issues{/number}","pulls_url":"https://api.github.com/repos/toejough/ugetch/pulls{/number}","milestones_url":"https://api.github.com/repos/toejough/ugetch/milestones{/number}","notifications_url":"https://api.github.com/repos/toejough/ugetch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toejough/ugetch/labels{/name}","releases_url":"https://api.github.com/repos/toejough/ugetch/releases{/id}","created_at":"2015-07-11T15:02:03Z","updated_at":"2015-07-12T15:29:05Z","pushed_at":"2015-07-18T12:50:16Z","git_url":"git://github.com/toejough/ugetch.git","ssh_url":"git@github.com:toejough/ugetch.git","clone_url":"https://github.com/toejough/ugetch.git","svn_url":"https://github.com/toejough/ugetch","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"toejough:master","ref":"master","sha":"2616fe2bbe55feb0048e3e973966f83d7f5f9710","user":{"login":"toejough","id":5317312,"avatar_url":"https://avatars.githubusercontent.com/u/5317312?v=3","gravatar_id":"","url":"https://api.github.com/users/toejough","html_url":"https://github.com/toejough","followers_url":"https://api.github.com/users/toejough/followers","following_url":"https://api.github.com/users/toejough/following{/other_user}","gists_url":"https://api.github.com/users/toejough/gists{/gist_id}","starred_url":"https://api.github.com/users/toejough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toejough/subscriptions","organizations_url":"https://api.github.com/users/toejough/orgs","repos_url":"https://api.github.com/users/toejough/repos","events_url":"https://api.github.com/users/toejough/events{/privacy}","received_events_url":"https://api.github.com/users/toejough/received_events","type":"User","site_admin":false},"repo":{"id":38929526,"name":"ugetch","full_name":"toejough/ugetch","owner":{"login":"toejough","id":5317312,"avatar_url":"https://avatars.githubusercontent.com/u/5317312?v=3","gravatar_id":"","url":"https://api.github.com/users/toejough","html_url":"https://github.com/toejough","followers_url":"https://api.github.com/users/toejough/followers","following_url":"https://api.github.com/users/toejough/following{/other_user}","gists_url":"https://api.github.com/users/toejough/gists{/gist_id}","starred_url":"https://api.github.com/users/toejough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toejough/subscriptions","organizations_url":"https://api.github.com/users/toejough/orgs","repos_url":"https://api.github.com/users/toejough/repos","events_url":"https://api.github.com/users/toejough/events{/privacy}","received_events_url":"https://api.github.com/users/toejough/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toejough/ugetch","description":"utf-8 getch, with support for arrows, tab, echoing, etc","fork":false,"url":"https://api.github.com/repos/toejough/ugetch","forks_url":"https://api.github.com/repos/toejough/ugetch/forks","keys_url":"https://api.github.com/repos/toejough/ugetch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toejough/ugetch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toejough/ugetch/teams","hooks_url":"https://api.github.com/repos/toejough/ugetch/hooks","issue_events_url":"https://api.github.com/repos/toejough/ugetch/issues/events{/number}","events_url":"https://api.github.com/repos/toejough/ugetch/events","assignees_url":"https://api.github.com/repos/toejough/ugetch/assignees{/user}","branches_url":"https://api.github.com/repos/toejough/ugetch/branches{/branch}","tags_url":"https://api.github.com/repos/toejough/ugetch/tags","blobs_url":"https://api.github.com/repos/toejough/ugetch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toejough/ugetch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toejough/ugetch/git/refs{/sha}","trees_url":"https://api.github.com/repos/toejough/ugetch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toejough/ugetch/statuses/{sha}","languages_url":"https://api.github.com/repos/toejough/ugetch/languages","stargazers_url":"https://api.github.com/repos/toejough/ugetch/stargazers","contributors_url":"https://api.github.com/repos/toejough/ugetch/contributors","subscribers_url":"https://api.github.com/repos/toejough/ugetch/subscribers","subscription_url":"https://api.github.com/repos/toejough/ugetch/subscription","commits_url":"https://api.github.com/repos/toejough/ugetch/commits{/sha}","git_commits_url":"https://api.github.com/repos/toejough/ugetch/git/commits{/sha}","comments_url":"https://api.github.com/repos/toejough/ugetch/comments{/number}","issue_comment_url":"https://api.github.com/repos/toejough/ugetch/issues/comments{/number}","contents_url":"https://api.github.com/repos/toejough/ugetch/contents/{+path}","compare_url":"https://api.github.com/repos/toejough/ugetch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toejough/ugetch/merges","archive_url":"https://api.github.com/repos/toejough/ugetch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toejough/ugetch/downloads","issues_url":"https://api.github.com/repos/toejough/ugetch/issues{/number}","pulls_url":"https://api.github.com/repos/toejough/ugetch/pulls{/number}","milestones_url":"https://api.github.com/repos/toejough/ugetch/milestones{/number}","notifications_url":"https://api.github.com/repos/toejough/ugetch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toejough/ugetch/labels{/name}","releases_url":"https://api.github.com/repos/toejough/ugetch/releases{/id}","created_at":"2015-07-11T15:02:03Z","updated_at":"2015-07-12T15:29:05Z","pushed_at":"2015-07-18T12:50:16Z","git_url":"git://github.com/toejough/ugetch.git","ssh_url":"git@github.com:toejough/ugetch.git","clone_url":"https://github.com/toejough/ugetch.git","svn_url":"https://github.com/toejough/ugetch","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/toejough/ugetch/pulls/24"},"html":{"href":"https://github.com/toejough/ugetch/pull/24"},"issue":{"href":"https://api.github.com/repos/toejough/ugetch/issues/24"},"comments":{"href":"https://api.github.com/repos/toejough/ugetch/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/toejough/ugetch/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/toejough/ugetch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/toejough/ugetch/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/toejough/ugetch/statuses/8b9811becf804dee0d489754b961168d23c65fea"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":84,"deletions":30,"changed_files":4}}