This is an enhancement suggestion for supporting CJK wide characters.

Many CJK characters are two columns wide in terminals. For example, "人" is a Chinese character and appears as wide as "xx" in a terminal, though len("人")==1. Many calculations and codes are based on the assumption that each character take only occupies one column. This issue breaks many of the effects like in beams, the vertical beams break into segments and in print the rows are not cleaned correctly because the length of rows are miscalculated. It also breaks the shapes of spotlights etc.

I made some modification to fix the issue, main...tjwei:terminaltexteffects:main It use `unicodedata.east_asia…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help