isontheline / pro.webssh.net

iOS / iPadOS / macOS SSH Client
https://apps.apple.com/us/app/id497714887
MIT License
276 stars 31 forks source link

Cursor disappears inside neovim #1127

Open samueldaniel opened 1 month ago

samueldaniel commented 1 month ago

Bug description

The cursor works fine in my terminal but it disappears inside neovim.

Screenshots

image

Steps to reproduce

  1. ssh to host
  2. open neovim
  3. try to find cursor
  4. cannot find cursor
isontheline commented 1 month ago

Could it be a configuration issue of neovim?

image

If you set a different background color, does the cursor appears?

samueldaniel commented 1 month ago

Could it be a configuration issue of neovim?

image

If you set a different background color, does the cursor appears?

The cursor appears as a line (not a block) in INSERT mode but does not appear at all in VISUAL or NORMAL mode.

I don't think it's a neovim config issue because it works just fine in every other SSH client/terminal I've tried on my iPad.

Changing themes in WebSSH does not help.

samueldaniel commented 1 month ago

ok so I just turned off my neovim theme and the cursor appeared. So I guess we could say it is in fact a neovim config issue!

But! Because it works in every other SSH client/terminal I've tried, I'm still kind of sort of thinking that there is some interplay between neovim and WebSSH that isn't quite right... I can't back that up with any code though 😂

thanks for the quick response @isontheline! WebSSH is the best SSH client I've tried on my iPad so far (and I've tried several...)! It's the only one that properly renders my tmux panes and also handles my various key combos correctly.

isontheline commented 1 month ago

It could be an issue with the underlying rendering library : https://github.com/xtermjs/xterm.js

Have you tried to change the terminal type inside your server settings on WebSSH? (Like xterm / xterm-color)