Closed rhapsodyv closed 13 years ago
Have you tried the samples. All the samples (examples) use 0, as zero results in the window taking up all the screen. Ncurses itself will convert 0 to screen size. If the examples work, perhaps there is some error in your program. If the examples do not work, I would suggest you try the examples that ncurses itself provides. I just want to ensure that ncurses itself is working fine since this is a very basic thing.
I'm using your samples. The ncurses samples have the same problem. Window with a 0 in height or width don't work. Maybe my ncurses lib have a problem. I'm using it from macports:
ncurses @5.8, Revision 1 (devel) Variants: universal
Yes, this seems to be a macport issue then. You might upgrade it, or try 5.7.
ncurses 5.9 works fine!! Thanks for your help.
Hi,
In 'rbcurse-1.1.5/lib/ver/window.rb' (root_window and create_window) the default value for window layout is: { :height => 0, :width => 0, :top => 0, :left => 0 } but, it makes Ncurses.new returns Nil. Setting height and width greater than 0 solves the problem. I think the default could be the screen size.
I'm using ncurses-1.2.4 and rbcurse-1.1.5. Mac 10.6.7 with ruby 1.8.7.
[]s Victor