Skip to content

Conversation

@jkelleyrtp
Copy link
Member

@jkelleyrtp jkelleyrtp commented Jul 15, 2025

I originally borrowed the code for ansi colored code printing from ratatui/ratatui#1634. Unfortunately, it has a bug where rendering unicode doesn't work properly, especially if emojis are placed next to each other. This fixes that by breaking lines into grapheme clusters and then assembling the String manually by concatenating raw cells together.

Fixes #4409

@jkelleyrtp jkelleyrtp requested a review from a team as a code owner July 15, 2025 18:44
@jkelleyrtp jkelleyrtp merged commit 393246b into main Jul 15, 2025
20 checks passed
@jkelleyrtp jkelleyrtp deleted the jk/fix-term-unicode branch July 15, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants