On Thu, Oct 15, 2009 at 11:27 AM, William Morgan
<wmorgan-sup@masanjin.net> wrote:
Reformatted excerpts from Dan Falcone's message of 2009-10-15:
> Hmm... good question. I regularly use emacs with colors enabled, but
> I'm not sure if that uses curses. I tried typespeed and that seemed
> to work. According to its man page, it uses curses.
Hm. What version of the ncurses gem do you have? (gem list --local
should tell you.)
What does this program print?
require 'rubygems'
require 'ncurses'
x = begin
Ncurses::initscr();
Ncurses::has_colors?()
ensure
Ncurses::endwin();
end
puts x
If it prints true, then, if you look in the contents of the gem
(wherever that is on your system), there should be an examples/
directory. If you run examples/tlock.rb or examples/rain.rb, (probably
with ruby -rubygems), do you see color?
--