wrote curses ffi module