Zero width space characters should not show up as visible spaces #16006

Closed
opened 2026-01-31 04:54:40 +00:00 by claunia · 3 comments
Owner

Originally created by @pragma- on GitHub (Dec 1, 2021).

Windows Terminal version

1.1129.1.0

Windows build number

10.0.19043

Other Software

Any software

Steps to reproduce

Any console application printing a zero-width space (ZWSP, U+200B) intends for them to not be visible.

Expected Behavior

Text with ZWSP characters invisible, having no width.

Actual Behavior

Text with visible space characters.

Originally created by @pragma- on GitHub (Dec 1, 2021). ### Windows Terminal version 1.1129.1.0 ### Windows build number 10.0.19043 ### Other Software Any software ### Steps to reproduce Any console application printing a zero-width space (ZWSP, U+200B) intends for them to not be visible. ### Expected Behavior Text with ZWSP characters invisible, having no width. ### Actual Behavior Text with visible space characters.
claunia added the Resolution-Duplicate label 2026-01-31 04:54:40 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Dec 1, 2021):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #1472 for more discussion.

/dup #1472
/dup #8000

@zadjii-msft commented on GitHub (Dec 1, 2021): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #1472 for more discussion. /dup #1472 /dup #8000
Author
Owner

@ghost commented on GitHub (Dec 1, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Dec 1, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@juliannoble commented on GitHub (Nov 30, 2024):

Testing with latest canary.

For ZWSP (\U200B) there appears to be no way to have it non-printing while using the 'Grapheme clusters' mode.
You have to use wcswidth to fix the behaviour this issue describes and then forgo grapheme clusters.

If grapheme clusters is intended to be (as described) the 'modern' way - then this bug would still seem to be present.

It's unclear to me how

/dup https://github.com/microsoft/terminal/issues/1472
/dup https://github.com/microsoft/terminal/issues/8000

address this specific issue.

@juliannoble commented on GitHub (Nov 30, 2024): Testing with latest canary. For ZWSP (\U200B) there appears to be no way to have it non-printing while using the 'Grapheme clusters' mode. You have to use wcswidth to fix the behaviour this issue describes and then forgo grapheme clusters. If grapheme clusters is intended to be (as described) the 'modern' way - then this bug would still seem to be present. It's unclear to me how /dup https://github.com/microsoft/terminal/issues/1472 /dup https://github.com/microsoft/terminal/issues/8000 address this specific issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16006