Socket
Book a DemoInstallSign in
Socket

curses_menu

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curses_menu

0.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

curses_menu

Ruby API to create terminal-based menus, using curses.

  • Easy navigation using arrows, page up/down, home, end, enter and escape keys.
  • Several actions per menu item.
  • Scrolling support.
  • Extensive formatting options with colors, alignments, decorations...
  • Easy support for sub-menus.
  • Automatic key presses for autmating tasks in the menu.
  • Ruby-like API.

Install

Via gem

$ gem install curses_menu

Via a Gemfile

$ gem 'curses_menu'

Usage

require 'curses_menu'

CursesMenu.new 'My awesome new menu!' do |menu|
  menu.item 'How\'s life?' do
    puts 'Couldn\'t be easier'
    :menu_exit
  end
end

Check the examples folder for more examples.

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

Automated tests are done using rspec.

Do execute them, first install development dependencies:

bundle install

Then execute rspec

bundle exec rspec

Contributing

Any contribution is welcome:

  • Fork the github project and create pull requests.
  • Report bugs by creating tickets.
  • Suggest improvements and new features by creating tickets.

Credits

  • [Muriel Salvan][link-author]

License

The BSD License. Please see License File for more information.

FAQs

Package last updated on 01 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.