vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.24k stars 3.51k forks source link

Neovim cursor shape does not change on insert mode #2765

Open joting opened 6 years ago

joting commented 6 years ago

Issue

This is an old issue #270, that was supposedly fixed by #2437, but that was under hterm I believe. The cursor remains a block regardless of mode in Neovim. Not sure if the change to xterm has caused a regression here or I am missing something.

jaydh commented 6 years ago

I'm on Arch with nvim and don't have this issue on the latest build. Perhaps you could try running a windows binary of nvim with hyper to see if the issue persists. Does the cursor change when using a different terminal emulator with WSL?

kccha commented 6 years ago

I'm using Ubuntu and have the same problem, but for vim.

neckerson commented 5 years ago

I am using Hyper 3.0.2 on MacOS 10.13.6 with Vim 8.1.950 and I have this issue. I have the below set in my .vimrc. I can change the cursor shape in hyper.js, but it will not change as it should when switching between insert/visual etc in an xterm terminal.

let &t_SI = "\<Esc>[6 q"
let &t_SR = "\<Esc>[4 q"
let &t_EI = "\<Esc>[2 q"

When I tested Neovim, the cursor was changing correctly.