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

Closed
opened 2026-01-31 01:21:51 +00:00 by claunia · 3 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:51 +00:00
Author
Owner

@zadjii-msft commented on GitHub (May 14, 2020):

Thanks for the report! This is actually already being tracked by another issue on our repo - please refer to #1604 for more discussion.

/dup #1604

@zadjii-msft commented on GitHub (May 14, 2020): Thanks for the report! This is actually already being tracked by another issue on our repo - please refer to #1604 for more discussion. /dup #1604
Author
Owner

@ghost commented on GitHub (May 14, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 14, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@ianyepan commented on GitHub (May 14, 2020):

@zadjii-msft Hey Mike, thanks for the pointer. I'll follow that thread instead :-)

@ianyepan commented on GitHub (May 14, 2020): @zadjii-msft Hey Mike, thanks for the pointer. I'll follow that thread instead :-)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8141