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

This ⸻ unicode ⸻ character ⸻ makes ⸻ weird ⸻ things ⸻ happen #49

Open
z3ntu opened this issue Jun 10, 2017 · 1 comment
Open

Comments

@z3ntu
Copy link

z3ntu commented Jun 10, 2017

https://github.com/redox-os/ion/issues/293

@MovingtoMars
Copy link
Owner

MovingtoMars commented Jun 10, 2017

I'm investigating this.

My first step was to add a special case for this character when getting string widths.

That hasn't seemed to have solved the problem though, and in fact my terminal emulator itself (Konsole) is acting wonky trying to display this!

It seems that Konsole itself thinks the width of this character is only 1 column, which is why when you paste in this character the cursor moves to the right one column. The terminal is supposed to move the cursor to the end of the text after text is written to it. Since it doesn't, this throws off liner's cursor movement algorithm.

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

No branches or pull requests

2 participants