Neovim Cursor Flickers from Block to Bar running in MS Terminal under Tmux #7217

Closed
opened 2026-01-31 00:58:06 +00:00 by claunia · 7 comments
Owner

Originally created by @mebaran on GitHub (Mar 30, 2020).

Environment

Windows build number: 10.0.19041.172
Windows Terminal version (if applicable):  0.10.781.0

Other software:
Debian WSL2 running tmux

Steps to reproduce

  1. Start tmux
  2. Start neovim (nvim -u NORC)
  3. Enter insert mode
  4. Watch cursor flicker between block and thin line

Expected behavior

Cursor should remain a line and not flicker. (this is the behavior in WSLtty)

Actual behavior

Cursor flickers between block and line.

Originally created by @mebaran on GitHub (Mar 30, 2020). # Environment ```none Windows build number: 10.0.19041.172 Windows Terminal version (if applicable): 0.10.781.0 Other software: Debian WSL2 running tmux ``` # Steps to reproduce 1. Start tmux 2. Start neovim (nvim -u NORC) 3. Enter insert mode 4. Watch cursor flicker between block and thin line <!-- A description of how to trigger this bug. --> # Expected behavior Cursor should remain a line and not flicker. (this is the behavior in WSLtty) # Actual behavior Cursor flickers between block and line.
claunia added the Resolution-Fix-CommittedIssue-BugArea-VTProduct-Conpty labels 2026-01-31 00:58:06 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Mar 30, 2020):

This doesn't seem to reproduce with stock configs of tmux and neovim on Debian:

image

no cursor flickering here.

@DHowett-MSFT commented on GitHub (Mar 30, 2020): This doesn't seem to reproduce with stock configs of tmux and neovim on Debian: ![image](https://user-images.githubusercontent.com/14316954/77944913-9a605a00-7274-11ea-941d-4868437e1daf.png) no cursor flickering here.
Author
Owner

@mebaran commented on GitHub (Mar 31, 2020):

Thank you for investigating this. To reproduce please run the following before to recreate the cursor flicker:

tmux set -g status-right %H:%M:%S
tmux set -g status-interval 1

That seems to cause the cursor flicker issues. The flicker seems to occur in tandem with tmux rewriting the status bar (if you set the interval to 5, the cursor will flicker every 5s). I can confirm the same issue doesn't happen in a mintty based terminal.

@mebaran commented on GitHub (Mar 31, 2020): Thank you for investigating this. To reproduce please run the following before to recreate the cursor flicker: tmux set -g status-right %H:%M:%S tmux set -g status-interval 1 That seems to cause the cursor flicker issues. The flicker seems to occur in tandem with tmux rewriting the status bar (if you set the interval to 5, the cursor will flicker every 5s). I can confirm the same issue doesn't happen in a mintty based terminal.
Author
Owner

@DHowett-MSFT commented on GitHub (Mar 31, 2020):

You know what, this looks like it's probably because we typoed the escape sequence that turns off the cursor. tmux and vim "fight" over the cursor, but tmux turns it off before it writes out the status line.

This is incidentally fixed by #5181 (ref #3093)

@DHowett-MSFT commented on GitHub (Mar 31, 2020): You know what, this looks like it's probably because we typoed the escape sequence that turns off the cursor. tmux and vim "fight" over the cursor, but tmux turns it off before it writes out the status line. This is incidentally fixed by #5181 (ref #3093)
Author
Owner

@mebaran commented on GitHub (Mar 31, 2020):

That sounds like exactly what is happening. Let me know if I can help test a beta build or when this makes it to a release.

@mebaran commented on GitHub (Mar 31, 2020): That sounds like exactly what is happening. Let me know if I can help test a beta build or when this makes it to a release.
Author
Owner

@ghost commented on GitHub (Apr 22, 2020):

:tada:This issue was addressed in #5181, which has now been successfully released as Windows Terminal Preview v0.11.1121.0.🎉

Handy links:

@ghost commented on GitHub (Apr 22, 2020): :tada:This issue was addressed in #5181, which has now been successfully released as `Windows Terminal Preview v0.11.1121.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.11.1121.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Author
Owner

@mebaran commented on GitHub (May 9, 2020):

This bug does not seem fixed in the latest release. Possible to reopen?

From about this is my version:
Windows Terminal
Version: 0.11.1121.0

@mebaran commented on GitHub (May 9, 2020): This bug does not seem fixed in the latest release. Possible to reopen? From about this is my version: Windows Terminal Version: 0.11.1121.0
Author
Owner

@mariuskimmina commented on GitHub (Sep 26, 2021):

Doesn't look fixed to me either, when I am in Insert mode in Neovim (with tmux) the cursor is flickering between line mode and block mode.
This does not happen if I use alacritty instead of the Windows Terminal.

Version; 1.11.2421.0

@mariuskimmina commented on GitHub (Sep 26, 2021): Doesn't look fixed to me either, when I am in Insert mode in Neovim (with tmux) the cursor is flickering between line mode and block mode. This does not happen if I use alacritty instead of the Windows Terminal. Version; 1.11.2421.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7217