microsoft / microsoft/terminal

Mouse cursor hide-on-type breaks if mouse recently moved

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

Description

### Windows Terminal version

1.13.10395.0

### Windows build number

Version 10.0.19043.1586

### Other Software

_No response_

### Steps to reproduce

When typing in windows terminal the mouse cursor hides. However if you move the mouse cursor and then type without waiting long enough, even if you don't move the mouse cursor at all any more, the mouse cursor instead hides, and then after a couple of seconds unhides itself.

Expected behavior:

### Expected Behavior

Mouse cursor hides and stays hidden when you type.

Or (unlikely) if an earlier recent move is intended to prevent hiding, then just prevent hiding rather than hide/unhiding.

### Actual Behavior

If you type after a recent mouse move, the cursor hides itself and then after a delay unhides itself, even if there was no mouse movement after the hide.

If you type after a less recent mouse move (the threshold seems to be > 1-2 seconds), things work correctly: the cursor hides and stays hidden.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the cursor behavior on the reported Windows Terminal and Windows versions, then trace the terminal's mouse-movement and typing-related cursor visibility handling. Done means typing shortly after moving the mouse hides the cursor without a later unexplained reappearance, including when there is no subsequent mouse movement.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.