Skip to content

Input Lag, Characters Drop and Cursor position issue in languages using IME(CJK) #759

@just-do-namu

Description

@just-do-namu

Hello, I'm a user from another project that is experiencing this CJK input problem.
Thank you for your hard work on this library.

I've been investigating this issue within a project called gemini-cli and have concluded that the root cause lies within ink's input handling.

For English, it works well as shown below.

Image

However, for CJK characters, there is input lag as shown below.

Image
Image
Image

In my opinion, solution is to implement a new logic within ink's input stream handling.
This logic would need to detect when an IME is active and temporarily buffer the input until a final, composed character is received.

This is a very complex task, but this issue is causing significant problems for many CJK language users.
By solving this issue, you would not only improve the user experience of the app I use (gemini-cli), but also significantly enhance the experience for many other CJK users of apps built with this library.

Thank you again for your great work on this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions