From cf2a97dea49248fc32ac0ab6149e4abc751399c4 Mon Sep 17 00:00:00 2001 From: PatR Date: Tue, 4 Jun 2024 14:45:00 -0700 Subject: [PATCH] tty invisible cursor Make the cursor visible when performing a shell escape or pushing nethack into the background. --- doc/fixes3-7-0.txt | 1 + win/tty/wintty.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 684b92b46..fc8ce49e3 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -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"); diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 137b86eb5..d7ec5a45e 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -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.