-
Notifications
You must be signed in to change notification settings - Fork 986
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
Can not input non-latin characters in REPL #32
Comments
The expression editor uses 8-bit characters and 8-bit ncurses functions. It might not be too challenging to modify it to use wide characters and the wide ncursesw functions, though it might take more than cosmetic changes. If you disable the expression editor (`scheme --eedisable``) Unicode should already work in a terminal emulator that supports it. |
I've spent a bunch of time today reading code, and I think I have a straightforward way of doing this, but I wanted to check here first. There are three parts to it.
None of this handles Unicode character composition, but it would allow all precomposed characters, emoji, and what not. AFAICT, character composition would require retrofitting a significant about of math in expeditor.ss. So, before I embark, is this a decent approach? Can you think of anything specific I'll need to address to get this code accepted? |
Have you looked into using the "wide" version of ncurses (ncursesw)? If it works, it should simplify the input side; plus I'm not sure the non-wide ncurses will even deliver multibyte input characters. |
Thanks for the pointer to the comment. I had forgotten curses getch.required that we go full screen. |
I believe this has since been fixed. |
I have no idea if ChezScheme's REPL support unicode. Is there any good way to solve this problem now?
The text was updated successfully, but these errors were encountered: