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

Curses.get_char fails on multibyte characters #67

Closed
tjortho opened this issue Jan 12, 2022 · 2 comments
Closed

Curses.get_char fails on multibyte characters #67

tjortho opened this issue Jan 12, 2022 · 2 comments

Comments

@tjortho
Copy link

tjortho commented Jan 12, 2022

I can't capture any of the multibyte characters (ie. function keys, arrow keys, and ESC) because they are all evaluating to the same thing: "\e".

Description of Curses.get_char: "Read and returns a character or function key from the window." (emphasis mine)

Single byte characters work fine, and escape code characters (\t for tab) work.

Using version 1.4.3
(I'd like to navigate through text buffers with directional keys)

Thank you for any insight or feedback in advance.

@tjortho
Copy link
Author

tjortho commented Jan 19, 2022

Nevermind. I found the "keypad" method in the Window class.

@shugo
Copy link
Member

shugo commented Jan 21, 2022

Thank you.

@shugo shugo closed this as completed Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants