microsoft / microsoft/terminal

Cursor width should respect dpi settings

Open
#16,228 2 comments 0 reactions 0 assignees View on GitHub
Area-AtlasEngine 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.18.2822.0

### Windows build number

10.0.22621.0

### Other Software

None

### Steps to reproduce

Set display scale to 200% and use the bar cursor.

### Expected Behavior

Cursor width should respect dpi settings.

### Actual Behavior

On 200% scale monitor, drawing the bar shape cursor use native 1px, not 1 logical pixel (2px). This makes it a little hard to locate, especially in light theme.

screenshots: terminal, WinUI control, browser
![screenshots](https://github.com/microsoft/terminal/assets/402471/9cefbfda-402a-4de9-a29f-fa0637634be3)

Contributor guide

Open the contributing guide

Research direction

The payload names no source file or test. Reproduce the bar cursor on a 200% scale display, then trace the cursor rendering path; done means its width respects DPI settings and appears as 2px at 200% scale.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.