static int cursorRow, cursorCol;
static int needResize;
+static int cursorOn = 1;
static const char * defaultHelpLine =
" <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen"
}
void newtSuspend(void) {
+ SLtt_set_cursor_visibility (1);
SLsmg_suspend_smg();
SLang_reset_tty();
+ SLtt_set_cursor_visibility (cursorOn);
}
void newtResume(void) {
}
void newtCursorOff(void) {
- SLtt_set_cursor_visibility (0);
+ cursorOn = 0;
+ SLtt_set_cursor_visibility (cursorOn);
}
void newtCursorOn(void) {
- SLtt_set_cursor_visibility (1);
+ cursorOn = 1;
+ SLtt_set_cursor_visibility (cursorOn);
}