Here's a hello world app:
require 'blight' include Blight RunsLoop.new.run do |window| renders_text = RendersCenteredText.new(window) renders_text.render("Hello, World! (type 'q' to quit)") end
And here's what that looks like:
- Requires Ruby 1.9.x, but without good reason
- Depends on the little-used ncurses-ruby gem, because I couldn't get any of the other ncurses wrappers to compile (on MRI 1.9.3, rbenv, OS X Lion, XCode CLI tools June 2012).