nuta / nsh

A command-line shell like fish, but POSIX compatible.
906 stars 34 forks source link

Multibyte character problem fix #37

Closed thomasqueirozb closed 2 years ago

thomasqueirozb commented 2 years ago

Fixes #34

This fixes the crash, but there still are problems with the display of the cursor. A refactor using something like unicode-segmentation would probably fix the problems, since it allows handling graphemes instead of chars.

nuta commented 2 years ago

Thanks, @thomasqueirozb! As you say, I agree we should improve wide-width characters support fundamentally using some useful external crates.