{"action":"created","issue":{"url":"https://api.github.com/repos/beryx/text-io/issues/17","repository_url":"https://api.github.com/repos/beryx/text-io","labels_url":"https://api.github.com/repos/beryx/text-io/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/beryx/text-io/issues/17/comments","events_url":"https://api.github.com/repos/beryx/text-io/issues/17/events","html_url":"https://github.com/beryx/text-io/issues/17","id":366007709,"node_id":"MDU6SXNzdWUzNjYwMDc3MDk=","number":17,"title":"autocomplete using up and down arrow key ","user":{"login":"mokun","id":1168584,"node_id":"MDQ6VXNlcjExNjg1ODQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1168584?v=4","gravatar_id":"","url":"https://api.github.com/users/mokun","html_url":"https://github.com/mokun","followers_url":"https://api.github.com/users/mokun/followers","following_url":"https://api.github.com/users/mokun/following{/other_user}","gists_url":"https://api.github.com/users/mokun/gists{/gist_id}","starred_url":"https://api.github.com/users/mokun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokun/subscriptions","organizations_url":"https://api.github.com/users/mokun/orgs","repos_url":"https://api.github.com/users/mokun/repos","events_url":"https://api.github.com/users/mokun/events{/privacy}","received_events_url":"https://api.github.com/users/mokun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-02T17:45:24Z","updated_at":"2018-10-05T04:03:25Z","closed_at":null,"author_association":"NONE","body":"how do I even begin to implement some sort of autocomplete at the input cursor by using up and down arrow keys ?\r\n\r\nI suppose this will be a nice feature for text-io that others are interested in.\r\n\r\nSay I have  `List<String> names = Arrays.asList(\"albert\", \"alice\", \"ava\", \"betty\", \"cathy\");`\r\n\r\nSo when asked about inputting a name, at the input prompt, if I type in the first letter as \"a\", (but before typing in the second letter), and I hit the up arrow key, I would like the word \"albert\" to pop up at the input prompt.\r\n\r\nI suppose I'll need to write my own methods to implement the nitty gritty.\r\n\r\nCan someone show me first on how to capture the input before hitting enter ?\r\n\r\nHow do I make use of the up and down arrow keys. Is it by registering handlers and how ? \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/beryx/text-io/issues/comments/427239677","html_url":"https://github.com/beryx/text-io/issues/17#issuecomment-427239677","issue_url":"https://api.github.com/repos/beryx/text-io/issues/17","id":427239677,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzIzOTY3Nw==","user":{"login":"mokun","id":1168584,"node_id":"MDQ6VXNlcjExNjg1ODQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1168584?v=4","gravatar_id":"","url":"https://api.github.com/users/mokun","html_url":"https://github.com/mokun","followers_url":"https://api.github.com/users/mokun/followers","following_url":"https://api.github.com/users/mokun/following{/other_user}","gists_url":"https://api.github.com/users/mokun/gists{/gist_id}","starred_url":"https://api.github.com/users/mokun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokun/subscriptions","organizations_url":"https://api.github.com/users/mokun/orgs","repos_url":"https://api.github.com/users/mokun/repos","events_url":"https://api.github.com/users/mokun/events{/privacy}","received_events_url":"https://api.github.com/users/mokun/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T04:03:25Z","updated_at":"2018-10-05T04:03:25Z","author_association":"NONE","body":"btw, I'm using Java 10 on windows OS and set to compile to Java 9 SE."}}
{"actor":{"display_login":"mokun"}}