blessed
blessed copied to clipboard
Emojis break boxes [bug]
Emojis seem to have double (?) the width of normal characters. This isn't accounted for in a box when using .pushLine
.
│Test 🐢 │
│ │
│ │
│ │
@Kycermann some emojis have two character lengths. You can see this by doing "🐢".length
(output would be 2)
That's true but they shouldn't distort the Blessed boxes they're in and at the moment they do
@Kycermann This bug has been finally patched in a fork by kenan. here
@p0ut awesome, seems like here
doesn't have a link though
@Kycermann Apologies, https://github.com/kenan238/reblessed
@Kycermann So just a quick update so I don't mislead you, both myself and kenan are looking into the emoji issue. It is caused by the library not being able to detect the width of emoji's. Initially, we managed to 'semi-patch' such characters, however it still occurs on certain emoji's.
It seems that most character ranges are hard coded. We are doing our best to try to find a sufficient fix for this and I will keep you updated here.
@p0ut cheers, I appreciate it!