sjmikler / progress-table

Display progress as a pretty table in the command line.
MIT License
90 stars 3 forks source link

[BUG] Columns don't align correctly when emojis are used #5

Closed naddeoa closed 1 week ago

naddeoa commented 9 months ago

image

Seems like something about emoji's causes the column width to overflow. I assume emoji's are secretly more than a single character wide.

sjmikler commented 6 months ago

Seems like the emojis and other unicode symbols can have width of just half of a character. This makes it difficult to manage, especially in dynamic cases like progress bars. I won't be working on this anytime soon.

sjmikler commented 6 months ago

This is partially solved in rich.table. Attaching images from two different terminals (both using rich):

obraz obraz

I will look into how it is handled in rich and possibly add a similar solution that would cover at least some of the terminals.