开发者

How can I capture terminal arrow keys in Ruby?

开发者 https://www.devze.com 2023-01-08 11:56 出处:网络
How can I 开发者_Python百科capture arrow keys in a terminal, without the user having to press \"enter\" after the arrow key?Look into the Ruby console libraries ruby-termios

How can I 开发者_Python百科capture arrow keys in a terminal, without the user having to press "enter" after the arrow key?


Look into the Ruby console libraries ruby-termios and ncurses-ruby.

0

精彩评论

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

关注公众号