cool, thanks, got it working. (btw you're missing a commit of the gradle folder in your repo, so ./gradlew build errors out). i had to install gcc-multilib on ubuntu to get it to compile. here's my proof of concept code:
// based on <https://www.linuxjournal.com/content/programming-text-windows-ncurses>
val sqWidth = 10
val sqHeight = 10
val board = mutableListOf<CPointer<WINDOW>?>()
fun show() {
initscr()
noecho()
cbreak()
refresh()
var starty = 0
for (i in 0..10) {
board.add(newwin(sqHeight, sqWidth, starty, i * sqWidth))
}
starty = sqHeight
for (i in 0..10) {
board.add(newwin(sqHeight, sqWidth, starty, i * sqWidth))
}
starty = sqHeight * 2
for (i in 0..10) {
board.add(newwin(sqHeight, sqWidth, starty, i * sqWidth))
}
for (window in board) {
if (window == null) {
println("Window was null!!")
} else {
box(window, 0, 0);
wrefresh(window);
}
}
getch()
}