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

@@ -2026,6 +2026,7 @@ tty: if a group accelerator matched a menu command ('^' in menu for '/')
it wouldn't work to select, just to manipulate the menu
tty: after resize changes which included screen erasure changes, ^C and yes|y
to "Really quit?" while a menu was open would lead to a panic
tty: make cursor visible again when using ! or ^Z to temporarily leave nethack
Unix: after lua changes to Makefiles, 'make spotless' for dat subdirectory
left some generated data files which should have been deleted
Unix: reject "--sX" on command line except if "X" is "cores" (so "--scores");

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.