How can I capture terminal arrow keys in Ruby?

前端 未结 1 1395
我寻月下人不归
我寻月下人不归 2021-01-21 15:37

How can I capture arrow keys in a terminal, without the user having to press \"enter\" after the arrow key?

相关标签:
1条回答
  • 2021-01-21 15:49

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

    0 讨论(0)
提交回复
热议问题