Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ncurses with less cursing

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 blight.gemspec
README.md

blight

Blight is a little library to help you write apps with ncurses in an object-oriented way. (rubygems).

example

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:

Hello, World example terminal

issues

  • 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).
Something went wrong with that request. Please try again.