sayanarijit / tui-input

TUI input library supporting multiple backends, tui-rs and ratatui
MIT License
124 stars 12 forks source link

Handling multi-space characters (Japanese, Chinese...) width better #14

Closed Elvyria closed 2 years ago

Elvyria commented 2 years ago

Continuing #530, i added visual_cursor method as discussed, but currently fighting incorrect display at scroll position.

Currently I'm not sure if code in example is to blame or tui-rs. Investigating.

sayanarijit commented 2 years ago

Thank you. If possible, Please post some characters for testing, I'll review soon.

Elvyria commented 2 years ago

Sure JP: ビルドワールドIII〈上〉埋もれた遺跡 KR: 로맨틱 만화, 만화 아니메, 한국 만화

Elvyria commented 2 years ago

Alright, example should work now much better. I tested it for quite a bit, with mixed languages, and I didn't see any anomalies.

sayanarijit commented 2 years ago

I have taken your changes in https://github.com/sayanarijit/tui-input/pull/15