summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7b45ebd)
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);
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))) {
+
+ if (SOprintf ("Press <return> to show content..."))
+ printf ("Press <return> to show content...");
SIGNAL_HANDLER istat;
istat = SIGNAL (SIGINT, intrser);
SIGNAL_HANDLER istat;
istat = SIGNAL (SIGINT, intrser);