I am porting my tiny console UI toolkit library that I wrote for C# to Swift which is built on top of ncurses . The Darwin.ncurses library does not seem to surface enough of the API from ncurses (character input, and various definitions) and I have struggled to find a way of doing my own binding for ncurses so far as the information seems to have changed significantly over time.
There are a number of github projects called CNCurses with many variations  but none of them appear to compile anymore, with errors like:
error: the package does not contain a buildable target
I suspect the Darwin.ncurses is lacking methods purely by how the binding was produced - some macros are missing, some methods are missing -likely a missing define at compile time?
What I was hoping was to produce some sort of projection from the C API in ncurses.h to Swift that I could consume, and I could drive that binding by providing the proper compile time definitions, am I on the right path here?