FFI 0.1.1 (Foreign Function Interface) for Ruby 1.8.6/7 and 1.9

Sean O’Halpin wrote:

I’ve just uploaded the ~very raw~ initial port of the core ncurses lib
to ruby-ffi. You can find it at:

git://github.com/seanohalpin/ffi-ncurses.git

This works with ffi-0.0.2 (which I got from the kenai project) - 0.0.1
left out typedefs for short ints.

Very cool :slight_smile: The early examples worked fine in JRuby but this one seems
to blow up in MemoryPointer. I’ll make sure wmeissner knows about it.

I know he’s taken a step back from adding new features in 0.2.0 to make
sure both JRuby and ruby-ffi are compatible again. Hopefully 0.2.0 will
be out soon along with JRuby 1.1.6.

  • Charlie

2008/11/18 Rados³aw Bu³at [email protected]:

I tried to run all examples but no one worked.
Hi Rados³aw,

If you’re still interested in ffi-ncurses, please install the new
version of ffi (0.2.0), update your copy of ffi-ncurses and try the
examples again.

I’ve tested on Mac OSX Tiger (terminal, iTerm, xterm & urxvt) and
Ubuntu 8.04 (gnome-terminal, xterm) with ruby 1.8.6. With the usual
provisos about different terminal types supporting different feature
sets, all the examples work as they should.

Regards,
Sean