From: Yukihiro Matsumoto Date: 2008-12-09T14:21:38+09:00 Subject: [ruby-core:20438] Re: Another Patch for curses extension. Hi, In message "Re: [ruby-core:20437] Re: Another Patch for curses extension." on Tue, 9 Dec 2008 13:41:15 +0900, "Giancarlo F Bellido" writes: |"The problem is that ISPRINT(c) returns true for key codes like KEY_IC, and |KEY_DC which are 0512 and 0513. So getch returns a string containing only a |one byte char(K and J respectively) instead of the key code. Other keys that |do not work are END, page up and page down. | |We could also use something similar to int_chr in numeric.c to check for |printable chars." Recent trunk uses Ruby's own version of ISPRINT (rb_isprint) which should work correctly on these keys. matz.