From 5cf9086c840f97002b83d6030bee10b3d7aa01ae Mon Sep 17 00:00:00 2001 From: nhmall Date: Sun, 10 May 2026 12:10:26 -0400 Subject: [PATCH] Windows: don't demand keypress on intentional exit --- sys/windows/windsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/windows/windsys.c b/sys/windows/windsys.c index 3dad0d330..f7c2e3d55 100644 --- a/sys/windows/windsys.c +++ b/sys/windows/windsys.c @@ -518,7 +518,7 @@ nethack_exit(int code) * GUILaunched is defined and set in consoletty.c. */ - if (getreturn_enabled) { + if (getreturn_enabled && !program_state.exiting) { raw_print("\n"); if (iflags.window_inited) wait_synch();