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