Skip to content
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

Handling of wide characters is incomplete #306

Open
osa1 opened this issue Feb 6, 2021 · 0 comments
Open

Handling of wide characters is incomplete #306

osa1 opened this issue Feb 6, 2021 · 0 comments

Comments

@osa1
Copy link
Owner

osa1 commented Feb 6, 2021

A wide character takes more than one column on terminals. Examples: the tab character (8 cols), (2 cols).

Currently in the input widget we don't handle these so if I enter wide characters the characters after that are rendered incorrectly, and glitches occur as I move the cursor.

I haven't checked, but I suspect message area should also have the same problem.

In termbox we use unicode-width to determine width of a character. However termbox does not implement wrapping so it's TUI's job to implement splitting the line at the right point in the presence of wide characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant