microsoft / microsoft/terminal

Cursor appears in unfocused window when the buffer changes in tmux

Open
#12,852 1 comment 0 reactions 0 assignees View on GitHub
Area-TerminalControl Help Wanted Issue-Bug Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.11.3471.0

### Windows build number

10.0.19044.1586

### Other Software

OpenSSH provided by Microsoft

### Steps to reproduce

1. SSH to a server or WSL
2. Open tmux
3. Unfocus the Terminal, the cursor will disappear as expected
4. Wait for something to change in the buffer (could be tmux's statusbar, or do `sleep 5 && echo hi`)

### Expected Behavior

I expect the cursor to not reappear until the terminal regains focus.

### Actual Behavior

The cursor reappears when something changes in the buffer, making it difficult to know if the window is focused or not.

https://user-images.githubusercontent.com/13711380/162254647-d28bd968-dbfe-48e8-b30c-a3bf25949023.mp4

Contributor guide

Open the contributing guide

Research direction

Reproduce this with Windows Terminal 1.11.3471.0 using OpenSSH, WSL or a server, and tmux: unfocus the window, then change the buffer. Trace the terminal cursor behavior around focus changes and buffer updates. Done means the cursor stays hidden while unfocused and reappears when the window regains focus.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.