Curses.getch() function responds twice for unicode keys
- Write a curses program (or use the attached one).
- Call Curses.getch()
- Press "ä" on your keyboard (Swedish layout needed for this)
I get two separate results from Curses.getch(), which when merged form a unicode 'ä'; 195 and 164.
I expected one result from Curses.getch() for my single keypress, containing a unicode 'ä'.
It seems as if Curses.getch() ends up in the NCurses getch() function at http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/curses/curses.c?revision=43316&view=markup#l647 . Calling wgetch() instead may or may not help.