[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] curses exception



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?
-- 
William <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk