Forum: JRuby Curses

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
486ca04f06d968004643ce5b47376ded?d=identicon&s=25 Keith B. (keith_b)
on 2013-08-12 22:44
(Received via mailing list)
All -

I'm using curses in a Ruby app to display a periodically updating full
screen text mode interface on an app running on servers without a

Curses is included in the standard distribution of MRI Ruby, but I just
tried my app for the first time in JRuby, and it dies when requiring

    LoadError: no such file to load -- curses

Is there a way for me to adapt JRuby to curses, which is, as I
it, a C library?

C983ad33b47479f17a28e083e1bb3d8b?d=identicon&s=25 Eric West (edubkendo)
on 2013-08-12 23:25
(Received via mailing list)
[JCurses, a java console windowing toolkit for Windows and Linux]( was the first result in a
google search for `java curses`. There are probably others. Support for
C-Extensions was removed from JRuby1.7.3, I believe. The options that
to mind are to use a java lib that provides curses support like the one
linking, or attempt to use FFI to interact with the C library . I think
wrapping the java lib would be the easier task, personally.
5993756d2b69ce0bc16df3318c240d54?d=identicon&s=25 Wayne Meissner (Guest)
on 2013-08-13 02:16
(Received via mailing list)
There is ffi-ncurses (, which
runs on both CRuby and JRuby.  Not sure how complete it is, but worth
a try.
Ef31027f8a39cb4b822094019a884849?d=identicon&s=25 Jean Lazarou (Guest)
on 2013-08-14 10:05
(Received via mailing list)
I wrote a very basic curses library targeting Swing... it needs a lot of
improvements, it covers what I needed:

It depends on the features you use.


PS: I could improve it.

 From: Wayne Meissner <>
Sent: Tuesday, August 13, 2013 2:14 AM
Subject: Re: [jruby-user] Curses

There is ffi-ncurses (, which
runs on both CRuby and JRuby. Not sure how complete it is, but worth
a try.
This topic is locked and can not be replied to.