/curses_sandbox

Some standalone scripts to test various aspects of the curses library for Ruby

Primary LanguageRuby

curses_sandbox

Run ./menu to start. Pressing ESC exits any of the apps.

Some standalone scripts to test various aspects of the curses library for Ruby.

  • color - Setting RGB colors, working with color pairs and attributes
  • keycodes - Records user input and generates keys.rb with the constants
  • menu - Puts it together in a menu system to run the scripts
  • mouse - Display mouse position and button clicks
  • scroll - A way to scroll a window
  • signals - Handle OS signals
  • windows - Draw multiple windows with borders

Notes:

  • Curses does not handle overlapping windows
  • If tiling windows don't use stdscr

References: