The Accidental Rubyist

invalid byte sequence in UTF-8

Migrating rbcurse to ffi-ncurses

with 4 comments

Back after a long break. Ruby 1.9.3 is out and it has something called io/console which I could not figure out. Anyway, I’d like to port rbcurse so it can use ffi-ncurses instead of ncurses-ruby which is so infernally hard for a lot of people to install.
ffi-ncurses does not have panel support. I wasted many hours trying to add it to Window. I found Ver’s panel.rb but that did not work with ffi’s Window class (provided in the examples). I found another Window.rb in the Ver package (github) and I am in quite a mess currently trying to integrate them. Getting segmentation faults.

Will probably some updates on that tumblr page I have somewhere.

Advertisements

Written by totalrecall

September 4, 2011 at 1:13 pm

4 Responses

Subscribe to comments with RSS.

  1. Have a look at https://github.com/nobu/io-console for io/console.

    Keep up the work on rbcurse!

    davor

    October 12, 2011 at 9:25 pm

  2. Thank! Yes, I have seen io-console. However, it seems to offer very little. I went through the source some time back, but couldn’t get much out of of it.

    totalrecall

    October 12, 2011 at 10:04 pm

  3. Dude, you need to check out the updated doc for 1.9.3’s Curses module:

    http://ruby-doc.org/stdlib-1.9.3/libdoc/curses/rdoc/Curses/Window.html

    Dave Gregory

    January 25, 2012 at 7:00 am

  4. Thanks Dave for the link, looks interesting However, I have a bunch of people still using 1.8.x, so i keep getting complaints even regarding 1.9.0 hash syntax and others.

    totalrecall

    January 25, 2012 at 10:56 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: