Can't change back to default cursor shape after enter and exit out of neovim. #8138

Open
opened 2026-01-31 01:21:48 +00:00 by claunia · 0 comments
Owner

Originally created by @ianyepan on GitHub (May 14, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.778]
Windows Terminal version (if applicable): 0.11.1251.0

Any other software? neovim, WSL1

Short bug description

Windows Terminal fails to change back to default cursor shape after I enter and exit out of neovim.

Steps to reproduce

  1. Set the cursor shape in Windows Terminal to be "vintage" (i.e. thick underscore) in settings.json.
  2. Open a terminal session in WSL1 (Ubuntu 18.04).
  3. Invoke neovim on a random file with nvim main.cpp.
  4. Exit neovim with :q<enter>

Expected behavior

  1. Invoke neovim at the command line, the cursor shape is vintage before entering the neovim session. So far so good.
  2. Entered neovim, the cursor shape is now filled-box in "neovim's normal-mode", and is a vertical thin line in "neovim's insert-mode". So far so good.
  3. After I exit out of neovim, Windows Terminal should give me back the vintage cursor shape at the command line, which I specified as the default in settings.json.

Actual behavior

Windows Terminal fails to change back to default cursor shape after I enter and exit out of neovim. The cursor now becomes filled-box shape (as in neovim's normal mode).

Originally created by @ianyepan on GitHub (May 14, 2020). # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18363.778] Windows Terminal version (if applicable): 0.11.1251.0 Any other software? neovim, WSL1 ``` # Short bug description Windows Terminal fails to change back to default cursor shape after I enter and exit out of neovim. # Steps to reproduce 0. Set the cursor shape in Windows Terminal to be "vintage" (i.e. thick underscore) in `settings.json`. 1. Open a terminal session in WSL1 (Ubuntu 18.04). 2. Invoke neovim on a random file with `nvim main.cpp`. 3. Exit neovim with `:q<enter>` # Expected behavior 1. Invoke neovim at the command line, the cursor shape is vintage before entering the neovim session. So far so good. 2. Entered neovim, the cursor shape is now filled-box in "neovim's normal-mode", and is a vertical thin line in "neovim's insert-mode". So far so good. 3. After I exit out of neovim, Windows Terminal should give me back the vintage cursor shape at the command line, which I specified as the default in `settings.json`. <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior Windows Terminal fails to change back to default cursor shape after I enter and exit out of neovim. The cursor now becomes filled-box shape (as in neovim's normal mode).
claunia added the Resolution-Duplicate label 2026-01-31 01:21:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8138