[App edit] Wide characters get treated as two characters by the cursor and gets hidden #31

Open
opened 2025-07-09 13:36:46 +00:00 by Ponali · 0 comments
Ponali commented 2025-07-09 13:36:46 +00:00 (Migrated from github.com)

When moving the cursor while inside of a wide character, it will not move by the distance of a wide character, but instead of a regular character. gpu.get() cannot return any character for this scenario, and setting anything inside of a wide character will hide the wide character beforehand.

To fix this, the cursor must move by 2 in the X position when pressing right on a wide character, and move by -2 in the X position when pressing left and entering a wide character.

https://github.com/user-attachments/assets/fc8495ab-ec39-4584-a41f-ae32c4133f9a

When moving the cursor while inside of a wide character, it will not move by the distance of a wide character, but instead of a regular character. `gpu.get()` cannot return any character for this scenario, and setting anything inside of a wide character will hide the wide character beforehand. To fix this, the cursor must move by 2 in the X position when pressing right on a wide character, and move by -2 in the X position when pressing left and entering a wide character. https://github.com/user-attachments/assets/fc8495ab-ec39-4584-a41f-ae32c4133f9a
Sign in to join this conversation.