Scurses

This page is about Scurses, a simple curses library for O'Caml.

What?
Scurses is a very simple (read: retarded) curses binding for O'Caml. It is—by no means—intended to be complete, but it provides the basic functionality I need, so I thought I'd make it available in case anybody else wants to use it. It is provided as is—I make no promises or guarantees, but I've found it usable for the toy programs I write.

How?
The O'Caml manual provides an example of how to use the foreign function interface to link O'Caml code with C code. -and- It just so happens that the example used is curses! Hence, my code is largely based on the example from the O'Caml manual, which is available from the Caml home-page. I've extended the code from the example to provide the following basic functionality (please forgive me if I use the wrong terminology—I'm no curses expert!):

Who?
Scurses is intended for use in very simple console applications. It's not intended to provide a total binding to curses, and it won't be very useful if that's what you require. That said, I think it should be fairly adequate for basic use; of course, you're encouraged to extend the binding if you're so inclined. The reason I didn't implement the entire interface was that it's incredibly tedious to wrap all the functions, test the interface, etc.

Where?
You can download Scurses here. Let me know if you use it, modify it, etc. Please send me reports if you find any bugs (with the implemented features, not with absent functionality).