How to do a textbox in terminal ruby applications?

柔情痞子 提交于 2019-12-13 02:37:51

问题


How to do a textbox in terminal ruby applications? Is there a gem for this or it can be done using pure ruby.


回答1:


If you are on Ruby 1.9.x, you can take a look at rbcurse, a

ruby based curses widgets: fields, buttons, textarea. menus, message boxes, tabbed panes, tables, listboxes, splitpanes, scrollpanes. Event based, MVC architecture.

The developer recently split the functionality up into

  • https://github.com/rkumar/rbcurse-core
  • https://github.com/rkumar/rbcurse-extras
  • https://github.com/rkumar/rbcurse-experimental



回答2:


I wrote tty-box for creating flexible terminal boxes.

You can do more complex layouts of many boxes that are interlinked as well.



来源:https://stackoverflow.com/questions/8463986/how-to-do-a-textbox-in-terminal-ruby-applications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!