raphamorim / rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
https://raphamorim.io/rio
MIT License
3.65k stars 115 forks source link

Rio doesn't handle double-width characters (e.g. CJK characters) #697

Closed marchbox closed 3 weeks ago

marchbox commented 3 weeks ago

When the cursor is on a double-width character, the character shrinks to single width (see screencast)

https://github.com/user-attachments/assets/2dcd3db9-eba2-4eaf-b9e2-73dac068097d

I found a similar issue that used to be in Alacritty here: https://github.com/alacritty/alacritty/issues/265

raphamorim commented 3 weeks ago

Is this regarding the cursor only? I am not sure if I understood correctly (I am unable to watch the video you sent)

Screenshot 2024-10-07 at 14 10 32

In my case it does indeed 10 cells

Screenshot 2024-10-07 at 14 09 32
raphamorim commented 3 weeks ago

Ah ok, I was able to see the video now. weird.. which version are you using and is it running on MacOS?

marchbox commented 3 weeks ago

@raphamorim Yes it's on macOS. The version is 0.1.10. I just upgraded to 0.1.17, the issue is gone :D