tty invisible cursor

Make the cursor visible when performing a shell escape or pushing
nethack into the background.
This commit is contained in:
PatR
2024-06-04 14:45:00 -07:00
parent 16ac21297a
commit cf2a97dea4
2 changed files with 3 additions and 1 deletions

View File

@@ -788,6 +788,7 @@ getret(void)
void
tty_suspend_nhwindows(const char *str)
{
term_curs_set(1);
settty(str); /* calls end_screen, perhaps raw_print */
if (!str)
tty_raw_print(""); /* calls fflush(stdout) */
@@ -798,6 +799,7 @@ tty_resume_nhwindows(void)
{
gettty();
setftty(); /* calls start_screen */
term_curs_set(0);
docrt();
}
@@ -814,7 +816,6 @@ tty_exit_nhwindows(const char *str)
{
winid i;
term_curs_set(1);
tty_suspend_nhwindows(str);
/*
* Disable windows to avoid calls to window routines.