previously, "mhshow | cat" would both print a "Press return" prompt
to, and attempt to read from, its piped output fd.
else
list_switch (ct, -1, 1, 0, 0);
- if (xpause && SOprintf ("Press <return> to show content..."))
- printf ("Press <return> to show content...");
-
- if (xpause) {
+ if (xpause && isatty (fileno (stdout))) {
int intr;
+
+ if (SOprintf ("Press <return> to show content..."))
+ printf ("Press <return> to show content...");
SIGNAL_HANDLER istat;
istat = SIGNAL (SIGINT, intrser);