Bug Report: Cursor no longer pauses blinking when focus is lost #2429

Closed
opened 2026-01-30 22:54:49 +00:00 by claunia · 4 comments
Owner

Originally created by @dkter on GitHub (Jun 30, 2019).

Environment

Windows build number: 10.0.18362.175
Windows Terminal version (if applicable): Issue appears starting with commit ab08320dde

Steps to reproduce

  1. Open Windows Terminal
  2. Switch focus to another window

Expected behavior

The cursor stops blinking and turns off, as it did before.

Actual behavior

The cursor continues to blink.

I tested before and after ab08320dde and it seems like the issue started with that commit.

Originally created by @dkter on GitHub (Jun 30, 2019). # Environment Windows build number: 10.0.18362.175 Windows Terminal version (if applicable): Issue appears starting with commit https://github.com/microsoft/terminal/commit/ab08320dde8adf160b72af3e8bf51ee26f6cb476 # Steps to reproduce 1. Open Windows Terminal 2. Switch focus to another window # Expected behavior The cursor stops blinking and turns off, as it did before. # Actual behavior The cursor continues to blink. I tested before and after https://github.com/microsoft/terminal/commit/ab08320dde8adf160b72af3e8bf51ee26f6cb476 and it seems like the issue started with that commit.
claunia added the Issue-BugNeeds-Tag-FixProduct-TerminalArea-UserInterface labels 2026-01-30 22:54:50 +00:00
Author
Owner

@angelog0 commented on GitHub (Jul 1, 2019):

I use the box cursor (filledBox) and when the focus is lost it disappears completely. On other terminals (MinTTY, iTerm2, for example), and in Emacs, when the focus is lost, the cursor becomes an empty box (not filled rectangle).

I think that Windows Terminal should have the same behavior...

@angelog0 commented on GitHub (Jul 1, 2019): I use the box cursor (`filledBox`) and when the focus is lost it disappears completely. On other terminals (`MinTTY`, `iTerm2`, for example), and in `Emacs`, when the focus is lost, the cursor becomes an empty box (not filled rectangle). I think that Windows Terminal should have the same behavior...
Author
Owner

@dkter commented on GitHub (Jul 1, 2019):

The issue only happens with showTabsInTitlebar on. Cursor shape doesn't seem to affect it.

@dkter commented on GitHub (Jul 1, 2019): The issue only happens with `showTabsInTitlebar` on. Cursor shape doesn't seem to affect it.
Author
Owner

@dkter commented on GitHub (Jul 1, 2019):

TermControl::_LostFocusHandler is not called when the window loses focus, but is called when the tab loses focus and the window stays in focus.

@dkter commented on GitHub (Jul 1, 2019): `TermControl::_LostFocusHandler` is not called when the window loses focus, but *is* called when the tab loses focus and the window stays in focus.
Author
Owner

@dkter commented on GitHub (Aug 7, 2019):

It seems this issue was inadvertently fixed at some point, so I'm closing it.

@dkter commented on GitHub (Aug 7, 2019): It seems this issue was inadvertently fixed at some point, so I'm closing it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2429