Reuben F
12/19/2021, 7:09 PM/usr/lib/x86_64-linux-gnu/libtinfo.so: error: undefined reference to 'stat', version 'GLIBC_2.33'
is there a list of system dependencies that need to be installed anywhere?Miroslav Sobotka
01/13/2022, 8:07 PMReuben F
01/13/2022, 8:23 PMReuben F
01/15/2022, 11:39 AM// 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()
}
Miroslav Sobotka
01/18/2022, 8:57 PM