Unicode EN (half an EM) cell width #524

Open
opened 2026-01-30 21:54:21 +00:00 by claunia · 0 comments
Owner

Originally created by @ghost on GitHub (Jan 18, 2019).

In Unicode it is ambiguous width character, but in cmd.exe it is always one cell of EN DASH (U+2013) How can I handle the character?
It is a short horizontal bar with red underline drawn.

First I thought it was a problem with Vim, but apparently when looking at other terminals, cmd.exe appears to be special.
I recognize that the problem of line display and right end display is on Vim side.

In ConPTY, the rows are swapped.
In winpty, the rightmost character is not output.
In cmd.exe, it will display normally.

I brought out two shots.
The first piece is before entering special case of EN DASH to Vim, after the second piece put it in.
The character string is the end part of the result of the Japanese version cl.exe /?.

Continue to the next article.

50749922-6d95e080-1285-11e9-9e1d-f63461680f50

image

Originally created by @ghost on GitHub (Jan 18, 2019). In Unicode it is ambiguous width character, but in cmd.exe it is always one cell of EN DASH (U+2013) How can I handle the character? It is a short horizontal bar with red underline drawn. First I thought it was a problem with Vim, but apparently when looking at other terminals, cmd.exe appears to be special. I recognize that the problem of line display and right end display is on Vim side. In ConPTY, the rows are swapped. In winpty, the rightmost character is not output. In cmd.exe, it will display normally. I brought out two shots. The first piece is before entering special case of EN DASH to Vim, after the second piece put it in. The character string is the end part of the result of the Japanese version cl.exe /?. Continue to the next article. ![50749922-6d95e080-1285-11e9-9e1d-f63461680f50](https://user-images.githubusercontent.com/44701315/51386347-7203a880-1b65-11e9-8236-5596074c3b0f.gif) ![image](https://user-images.githubusercontent.com/44701315/51386507-0241ed80-1b66-11e9-9e51-282c8084b286.png)
claunia added the Product-ConhostArea-Rendering labels 2026-01-30 21:54:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#524