From 60d59f4d5574c00cbb391cd58da3ed959de1ba2b Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 4 May 2026 08:23:56 -0400 Subject: [PATCH] early startup options could be run non-interactively https://github.com/NetHack/NetHack/issues/1512 Closes #1512 --- win/tty/wintty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index e7e11e9f2..f509cbc51 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -766,6 +766,8 @@ getret(void) #if defined(MICRO) || defined(WIN32CON) getreturn("to continue"); #else + if (!isatty(STDIN_FILENO)) + return; HUPSKIP(); xputs("\n"); if (flags.standout)