[GH-ISSUE #336] Weird artifacts due to emojis #855

Open
opened 2026-03-14 08:49:53 +03:00 by kerem · 3 comments
Owner

Originally created by @veracioux on GitHub (Nov 22, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/336

I'm not sure how the behavior is best described. But it seems that the grapheme width is not being calculated correctly so the characters are not being overwritten, leaving artifacts.

https://github.com/user-attachments/assets/cbb359f3-5bb7-4e06-92c0-2ab71ea217e2

Originally created by @veracioux on GitHub (Nov 22, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/336 I'm not sure how the behavior is best described. But it seems that the grapheme width is not being calculated correctly so the characters are not being overwritten, leaving artifacts. https://github.com/user-attachments/assets/cbb359f3-5bb7-4e06-92c0-2ab71ea217e2
Author
Owner

@kommander commented on GitHub (Nov 22, 2025):

Is that Alacritty?

<!-- gh-comment-id:3566660330 --> @kommander commented on GitHub (Nov 22, 2025): Is that Alacritty?
Author
Owner

@veracioux commented on GitHub (Nov 22, 2025):

@kommander Ah, indeed. It doesn't happen in kitty or ghostty.

Ghostty:
Image

Kitty:

Image
<!-- gh-comment-id:3566692635 --> @veracioux commented on GitHub (Nov 22, 2025): @kommander Ah, indeed. It doesn't happen in kitty or ghostty. Ghostty: <img width="929" height="53" alt="Image" src="https://github.com/user-attachments/assets/79d33239-f487-40d9-8cfc-735c1512ae6a" /> Kitty: <img width="854" height="48" alt="Image" src="https://github.com/user-attachments/assets/b52f4747-1a40-4777-9c25-d025d59bb882" />
Author
Owner

@kommander commented on GitHub (Nov 22, 2025):

Yeah, Alacritty does not support ZWJ shaping. Opentui has a no_zwj mode, which is not properly working yet. And when tmux is in between it might shadow when Alacritty is used, so it's hard to tell.

<!-- gh-comment-id:3566703825 --> @kommander commented on GitHub (Nov 22, 2025): Yeah, Alacritty does not support ZWJ shaping. Opentui has a `no_zwj` mode, which is not properly working yet. And when tmux is in between it might shadow when Alacritty is used, so it's hard to tell.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#855
No description provided.