diff --git a/games/rogue/pack.c b/games/rogue/pack.c index 7e9c4fcfd1f..3efcfa6cd18 100644 --- a/games/rogue/pack.c +++ b/games/rogue/pack.c @@ -264,6 +264,8 @@ next_avail_ichar() wait_for_ack() { + if (!isatty(0) || !isatty(1)) + return; while (rgetchar() != ' ') ; }