From: Eric S. Raymond Date: Wed, 24 May 2017 00:38:46 +0000 (-0400) Subject: Echo commands to stdout when replaying... X-Git-Tag: seed~73 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=8d0587b0ec11177d302f2a7c22186fcb06757762 Echo commands to stdout when replaying... ...makes check loads full transcripts abd more readable. --- diff --git a/misc.c b/misc.c index 8d5a296..77fdd22 100644 --- a/misc.c +++ b/misc.c @@ -894,6 +894,8 @@ long I, VAL; } else { if (logfp) IGNORE(fputs(INLINE+1, logfp)); + else if (!isatty(0)) + IGNORE(fputs(INLINE+1, stdout)); LNLENG=0; for (I=1; I<=sizeof(INLINE) && INLINE[I]!=0; I++) { VAL=INLINE[I]+1;