wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Cursor flickering in Neovim embedded terminal on Windows

Open woertsposzibllen4me opened this issue 7 months ago • 1 comments

What Operating System(s) are you seeing this problem on?

Windows

WezTerm version

20250510-092908-4a210168

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

Sorry if considered a duplicate of #5560.

This issue only happens on wezterm nightly, not on stable.

In Neovim embedded terminal on Windows (and interestingly not in WSL) the cursor starts blinking, even tho it's never been set to such a setting in the Windows>Wezterm>Pwsh>Neovim chain, and flickering happens on character typing/movement.

Cursor set to blinking "without permission" (should be steady block):

Image

Cursor flicking on animation:

Image

These behaviors are not present in a similar setting using Windows Terminal over Wezterm.

Configuration

Honestly I've tried pretty much tried every single options possible regarding any cursor settings in Pwsh profile config, Wezterm config, Neovim config, and even Lazygit source code directly.

woertsposzibllen4me avatar May 17 '25 22:05 woertsposzibllen4me

I am not a NeoVim user and I am not sure about the cursor jumping but for me the cursor still blinks on Windows Terminal>pwsh>NeoVim>CMD and on WezTerm>pwsh>NeoVim>CMD
The only difference with WezTerm is that the cursor is animated.

On Windows cursor blinking is a global setting (WezTerm overrides this) however this does not seem to effect the cursor in this instance. Microsoft offers a way to overide the blinking with a "Console Virtual Terminal Sequence" to set the cursor shape to one that is non blinking. After running pwsh -Command "Write-Host "1e[2 q"" stops the blinking. This will last for the instance of NeoVim. I believe this confirms that NeoVim is the one that is setting the blinking behavior.

hboyd2003 avatar Jun 09 '25 06:06 hboyd2003