Make output from replays easier to interpret by adding prompts.

This commit is contained in:
Eric S. Raymond 2017-05-23 22:29:24 -04:00
parent 63efff14f5
commit 97b00dfb14

4
misc.c
View file

@ -894,8 +894,10 @@ long I, VAL;
} else { } else {
if (logfp) if (logfp)
IGNORE(fputs(INLINE+1, logfp)); IGNORE(fputs(INLINE+1, logfp));
else if (!isatty(0)) else if (!isatty(0)) {
IGNORE(fputs("> ", stdout));
IGNORE(fputs(INLINE+1, stdout)); IGNORE(fputs(INLINE+1, stdout));
}
LNLENG=0; LNLENG=0;
for (I=1; I<=sizeof(INLINE) && INLINE[I]!=0; I++) { for (I=1; I<=sizeof(INLINE) && INLINE[I]!=0; I++) {
VAL=INLINE[I]+1; VAL=INLINE[I]+1;