-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unicde support #69
Comments
There's actually two issues:
|
#95 (specifically crespyl@e643737) has some changes that should hopefully fix unicode rendering (it seems to work for the minimal cases in the buffer.rs tests section). |
From @crespyl on Gitter:
Related to cursor movement over multi-byte characters. |
I've been messing around with trying to add unicode support, and it is turning out to be complicated. The biggest problem I have found is that termbox expects each cell to be a single codepoint, even though there sometimes needs to be multiple codepoints per cell. It probably wouldn't be too hard to modify termbox to store each cell as an array of I think that some problems could be solved by using iterators over cells (where 1 cell = 1 character width) rather than over bytes, chars, or graphemes. For example, an iterator yielding I'm guessing it would be easiest to have In summary, it seems like an implementation of unicode support could start from two places: termbox and Fixing the display of @suhr's example text wasn't too hard, but the fix shows why it is probably important not to make code outside of |
Since #50 was merged, Unicode support is broken. @P1start mentioned in the comments that fixing this shouldn't be too involved.
The text was updated successfully, but these errors were encountered: