func drawInfoBar() { cx, cy := C.int(0), C.int(level.YWidth) C.mvaddstr(cy, cx, C.CString("T: ")) C.addstr(C.CString(fmt.Sprint(currentLevel.Turn()))) }
func Mvaddstr(y, x int, str ...interface{}) { res := (*C.char)(C.CString(fmt.Sprint(str...))) defer C.free(unsafe.Pointer(res)) C.mvaddstr(C.int(y), C.int(x), res) }