{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/5977","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/5977/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/5977/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/5977/events","html_url":"https://github.com/neovim/neovim/pull/5977","id":202022805,"number":5977,"title":"tui: enable NVIM_TUI_ENABLE_CURSOR_SHAPE by default","user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-20T01:18:08Z","updated_at":"2017-01-24T15:47:35Z","closed_at":"2017-01-21T11:21:57Z","pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/5977","html_url":"https://github.com/neovim/neovim/pull/5977","diff_url":"https://github.com/neovim/neovim/pull/5977.diff","patch_url":"https://github.com/neovim/neovim/pull/5977.patch"},"body":"This is a temporary step until the [TUI respects 'guicursor'](https://github.com/neovim/neovim/issues/2583#issuecomment-272988384).\r\n\r\n- `NVIM_TUI_ENABLE_CURSOR_SHAPE=0` disables cursor shape-changing.\r\n- `NVIM_TUI_ENABLE_CURSOR_SHAPE=1` enables _non-blinking_ cursor with mode-specific shapes.\r\n  - This is the default now.\r\n- `NVIM_TUI_ENABLE_CURSOR_SHAPE=2` enables _blinking_ cursor with mode-specific shapes.\r\n\r\ncc @leonerd"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/274842188","html_url":"https://github.com/neovim/neovim/pull/5977#issuecomment-274842188","issue_url":"https://api.github.com/repos/neovim/neovim/issues/5977","id":274842188,"user":{"login":"leonerd","id":350941,"avatar_url":"https://avatars.githubusercontent.com/u/350941?v=3","gravatar_id":"","url":"https://api.github.com/users/leonerd","html_url":"https://github.com/leonerd","followers_url":"https://api.github.com/users/leonerd/followers","following_url":"https://api.github.com/users/leonerd/following{/other_user}","gists_url":"https://api.github.com/users/leonerd/gists{/gist_id}","starred_url":"https://api.github.com/users/leonerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonerd/subscriptions","organizations_url":"https://api.github.com/users/leonerd/orgs","repos_url":"https://api.github.com/users/leonerd/repos","events_url":"https://api.github.com/users/leonerd/events{/privacy}","received_events_url":"https://api.github.com/users/leonerd/received_events","type":"User","site_admin":false},"created_at":"2017-01-24T15:47:35Z","updated_at":"2017-01-24T15:47:35Z","body":"I've been trying this out now, and it's not quite sufficient on its own. In default state for me, no value of `$NVIM_TUI_ENABLE_CURSOR_SHAPE` ever blinks.\r\n\r\nI tracked down why. This is because my terminfo's `cursor_normal` string specifically turned off cursor blink:\r\n\r\n    $ infocmp -1L | grep cursor_normal\r\n            cursor_normal=\\E[?12l\\E[?25h,\r\n\r\nHaving now removed that with another update to my `fix-my-terminfo` script, I've removed the `CSI ? 12 l` from terminfo, at which point this patch now works as described.\r\n\r\nI don't know what the longer-term approach to this problem should be. Should users be expected to further customise their terminfo - already downvoted around the Backspace/Delete/Ctrl-H issue. Should neovim be ignoring this value too?"}}
{"actor":{"display_login":"leonerd"}}