{"action":"created","issue":{"url":"https://api.github.com/repos/gdamore/tcell/issues/85","repository_url":"https://api.github.com/repos/gdamore/tcell","labels_url":"https://api.github.com/repos/gdamore/tcell/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/gdamore/tcell/issues/85/comments","events_url":"https://api.github.com/repos/gdamore/tcell/issues/85/events","html_url":"https://github.com/gdamore/tcell/issues/85","id":141672397,"number":85,"title":"Key press not registered (only key release) for some keys","user":{"login":"zyedidia","id":5513065,"avatar_url":"https://avatars.githubusercontent.com/u/5513065?v=3","gravatar_id":"","url":"https://api.github.com/users/zyedidia","html_url":"https://github.com/zyedidia","followers_url":"https://api.github.com/users/zyedidia/followers","following_url":"https://api.github.com/users/zyedidia/following{/other_user}","gists_url":"https://api.github.com/users/zyedidia/gists{/gist_id}","starred_url":"https://api.github.com/users/zyedidia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyedidia/subscriptions","organizations_url":"https://api.github.com/users/zyedidia/orgs","repos_url":"https://api.github.com/users/zyedidia/repos","events_url":"https://api.github.com/users/zyedidia/events{/privacy}","received_events_url":"https://api.github.com/users/zyedidia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-17T18:40:22Z","updated_at":"2016-03-22T16:10:29Z","closed_at":null,"body":"For certain keys an event is only registered when the key is released, not when it is pressed. If the key is held down for a bit and then released, a bunch of key events are registered.\r\n\r\nSome keys that do this are `KeyEnter` `KeyTab` `KeyCtrlA`... (I think most of the control keys), but keys like `KeySpace` `KeyLeft` `KeyBackspace2` don't have this behavior.\r\n\r\nSetting `VTIME` to 0 solves the problem, but then the program's CPU usage goes way up.\r\n\r\nI am using iTerm2 on Mac OS X 10.11.2.\r\n\r\nEDIT: this also seems to happen on Linux (Ubuntu 15.10)"},"comment":{"url":"https://api.github.com/repos/gdamore/tcell/issues/comments/199884844","html_url":"https://github.com/gdamore/tcell/issues/85#issuecomment-199884844","issue_url":"https://api.github.com/repos/gdamore/tcell/issues/85","id":199884844,"user":{"login":"gdamore","id":1295229,"avatar_url":"https://avatars.githubusercontent.com/u/1295229?v=3","gravatar_id":"","url":"https://api.github.com/users/gdamore","html_url":"https://github.com/gdamore","followers_url":"https://api.github.com/users/gdamore/followers","following_url":"https://api.github.com/users/gdamore/following{/other_user}","gists_url":"https://api.github.com/users/gdamore/gists{/gist_id}","starred_url":"https://api.github.com/users/gdamore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdamore/subscriptions","organizations_url":"https://api.github.com/users/gdamore/orgs","repos_url":"https://api.github.com/users/gdamore/repos","events_url":"https://api.github.com/users/gdamore/events{/privacy}","received_events_url":"https://api.github.com/users/gdamore/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T16:10:29Z","updated_at":"2016-03-22T16:10:29Z","body":"What is your terminal type?  Can you send me the value of echo $TERM?  Also, did you regenerate the terminal database or are you using the one I shipped?"}}