开发者

Are arrow keys detected by FFI-NCurses in Ruby 1.9.2 on Windows?

开发者 https://www.devze.com 2023-01-29 04:50 出处:网络
I am writing a tiny text editor using FFI-NCurses in Ruby 1.9.2 on Windows 7 (64-bit). After setting t开发者_运维知识库he keypad mode, I am able to handle the function keys. However, NCurses does not

I am writing a tiny text editor using FFI-NCurses in Ruby 1.9.2 on Windows 7 (64-bit). After setting t开发者_运维知识库he keypad mode, I am able to handle the function keys. However, NCurses does not detect arrow keys being pressed.

I have a multimedia keyboard configured on Windows 7 as a normal US keyboard. Googling shows that arrow keys should have been detected once I set keypad mode to TRUE, but it just does not work.

Are the Ruby bindings at fault, or does NCurses on Windows (7) has a known issue of being unable to detect arrow keys?

0

精彩评论

暂无评论...
验证码 换一张
取 消