bczsalba / pytermgui

Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
https://ptg.bczsalba.com
MIT License
2.16k stars 53 forks source link

[BUG] Chinese text length is miscalculated #98

Closed Yooootsuba closed 4 months ago

Yooootsuba commented 1 year ago

In my case, I want to use Chinese texts to display some infomations, and that broke the box's side.

Does there any solutions for this?

Screenshot from 2022-09-22 16-35-59

bczsalba commented 1 year ago

Chinese characters are a bit hard to handle, since their Unicode representation doesn't clearly show their lengths. I will look into fixing this in the future, thanks for the report!

Yooootsuba commented 1 year ago

Chinese characters are a bit hard to handle, since their Unicode representation doesn't clearly show their lengths. I will look into fixing this in the future, thanks for the report!

Thanks for your reply. Looking forward to your patches ! :smile: