Skip to content

Character width issues #414

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

Closed
thomasballinger opened this issue Oct 17, 2014 · 3 comments
Closed

Character width issues #414

thomasballinger opened this issue Oct 17, 2014 · 3 comments
Labels

Comments

@thomasballinger
Copy link
Member

When autocompleting a filename with å in it, bpython-curtsies incorrectly calculates the width of the current line, placing the cursor one character too far to the right.

@thomasballinger
Copy link
Member Author

Check out https://github.com/jonathanslenders/python-prompt-toolkit - Jonathan
seems to have this down!

@thomasballinger
Copy link
Member Author

In Curtsies 0.2.0 FmtStrs have a width property which is the terminal display width (via a patched pure-Python wcswidth call) of the string (see http://curtsies.readthedocs.org/en/latest/index.html#len-vs-width) I need to add this to FSArrays in Curtsies still, but after that the work will be checking the width of strings for display and cursor position a lot.

@thomasballinger
Copy link
Member Author

I'd like to table this for now, it's rather complicated and doesn't fix issues I've heard anybody complain about.

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

No branches or pull requests

1 participant