Characters overlap sometimes with colored characters #20601

Open
opened 2026-01-31 07:18:49 +00:00 by claunia · 0 comments
Owner

Originally created by @palapapa on GitHub (Oct 1, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

19045.3448

Other Software

WSL 2

Steps to reproduce

This bug happens quite randomly, but I have noticed that it happens the most when there is colored text. The below screenshot is one example. You can see the colon after my username and the last dollar sign overlap with other characters. The font used is Monocraft, but this happens with almost any font, including the built-in ones.
圖片
The prompt string is ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
Steps to reproduce:

  1. Login to WSL.
  2. cd to a relatively long path while having a colored prompt string. The longer the path, the more obvious the overlapping is.
  3. Observe that some characters overlap with other characters.

Note that this doesn't only happen to prompt strings. I've also noticed this happening, for example, when installing npm packages when the output has colored text. Also, note that echoing that prompt string with colors directly doesn't cause this bug.

Expected Behavior

The characters don't overlap.

Actual Behavior

The characters overlap.

Originally created by @palapapa on GitHub (Oct 1, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 19045.3448 ### Other Software WSL 2 ### Steps to reproduce This bug happens quite randomly, but I have noticed that it happens the most when there is colored text. The below screenshot is one example. You can see the colon after my username and the last dollar sign overlap with other characters. The font used is Monocraft, but this happens with almost any font, including the built-in ones. ![圖片](https://github.com/microsoft/terminal/assets/61058728/d4fe5815-b87e-41ca-aa68-8c217fd2a53d) The prompt string is `${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ` Steps to reproduce: 1. Login to WSL. 2. `cd` to a relatively long path while having a colored prompt string. The longer the path, the more obvious the overlapping is. 3. Observe that some characters overlap with other characters. Note that this doesn't only happen to prompt strings. I've also noticed this happening, for example, when installing npm packages when the output has colored text. Also, note that `echo`ing that prompt string with colors directly doesn't cause this bug. ### Expected Behavior The characters don't overlap. ### Actual Behavior The characters overlap.
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:18:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20601