{"action":"created","issue":{"url":"https://api.github.com/repos/Eriner/zim/issues/6","labels_url":"https://api.github.com/repos/Eriner/zim/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Eriner/zim/issues/6/comments","events_url":"https://api.github.com/repos/Eriner/zim/issues/6/events","html_url":"https://github.com/Eriner/zim/issues/6","id":124181790,"number":6,"title":"Input handling","user":{"login":"GrayShade","id":308347,"avatar_url":"https://avatars.githubusercontent.com/u/308347?v=3","gravatar_id":"","url":"https://api.github.com/users/GrayShade","html_url":"https://github.com/GrayShade","followers_url":"https://api.github.com/users/GrayShade/followers","following_url":"https://api.github.com/users/GrayShade/following{/other_user}","gists_url":"https://api.github.com/users/GrayShade/gists{/gist_id}","starred_url":"https://api.github.com/users/GrayShade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrayShade/subscriptions","organizations_url":"https://api.github.com/users/GrayShade/orgs","repos_url":"https://api.github.com/users/GrayShade/repos","events_url":"https://api.github.com/users/GrayShade/events{/privacy}","received_events_url":"https://api.github.com/users/GrayShade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":46,"created_at":"2015-12-29T08:45:57Z","updated_at":"2015-12-29T14:05:32Z","closed_at":null,"body":"I tried to switch from `prezto` to `zim` and it certainly seems faster, but I'm having some trouble with the input mapping.\r\n\r\n* `Ctrl-Left` and `Ctrl-Right` print their escape codes. I noticed that the `input` module doesn't set them up with `bindkey`, so it makes sense.\r\n* I tried `bindkey '\\e[1;5D' backward-word` and it works, but there is a delay or some kind of timeout (waiting for a different escape sequence?). This was with `TERM=putty-256color` or how it's called.\r\n* From another machine with `TERM=xterm-256color` the cursor disappears when it's not at the end of line. This happens with `gnome-terminal`."},"comment":{"url":"https://api.github.com/repos/Eriner/zim/issues/comments/167796025","html_url":"https://github.com/Eriner/zim/issues/6#issuecomment-167796025","issue_url":"https://api.github.com/repos/Eriner/zim/issues/6","id":167796025,"user":{"login":"GrayShade","id":308347,"avatar_url":"https://avatars.githubusercontent.com/u/308347?v=3","gravatar_id":"","url":"https://api.github.com/users/GrayShade","html_url":"https://github.com/GrayShade","followers_url":"https://api.github.com/users/GrayShade/followers","following_url":"https://api.github.com/users/GrayShade/following{/other_user}","gists_url":"https://api.github.com/users/GrayShade/gists{/gist_id}","starred_url":"https://api.github.com/users/GrayShade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrayShade/subscriptions","organizations_url":"https://api.github.com/users/GrayShade/orgs","repos_url":"https://api.github.com/users/GrayShade/repos","events_url":"https://api.github.com/users/GrayShade/events{/privacy}","received_events_url":"https://api.github.com/users/GrayShade/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T14:05:32Z","updated_at":"2015-12-29T14:05:32Z","body":"Hmm, I tested on PuTTY:\r\n* PuTTY works in shell with `TERM=xterm` (default), but neovim doesn't like `Home` and `End`. Not related to zim, I suppose. \r\n* Linux PuTTY needs `\\e[1~` and `\\e[4~` for `Home` and `End` when `TERM=xterm`, works fine with `putty-256color`. No delay/timeout issue.\r\n* Windows PuTTY needs `\\e[C` and `\\e[D` for Ctrl-arrows when `TERM=xterm`; No delay/timeout issue.\r\n* With PuTTY and `TERM=putty-256color` (which apparently should be used [1]), `smkx` is not supported. prezto checks for that [2].\r\n\r\nYou can add those four bindings, but I don't care for them, as I'm using `putty-256colors`. They're just a workaround for a broken `$TERM` (though that's a common setting, I guess).\r\n\r\nIf you add checks for `smkx` and `rmkx`, this seems fixed to me.\r\n\r\n[1] http://blog.sanctum.geek.nz/putty-configuration/\r\n[2] https://github.com/sorin-ionescu/prezto/blob/master/modules/editor/init.zsh#L119"}}