No need to make leaveok changes win32 only.
diff --git a/main.c b/main.c
index 1afaaf3..cb8bbcd 100644
--- a/main.c
+++ b/main.c
@@ -998,11 +998,9 @@ static void workio_cmd_free(struct workio_cmd *wc)
static void disable_curses(void)
{
if (test_and_clear(&curses_active)) {
-#ifdef WIN32
leaveok(logwin, false);
leaveok(statuswin, false);
leaveok(mainwin, false);
-#endif
nocbreak();
echo();
delwin(logwin);