Make output from replays easier to interpret by adding prompts.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 24 May 2017 02:29:24 +0000 (22:29 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 23 Mar 2023 15:28:53 +0000 (11:28 -0400)
misc.c

diff --git a/misc.c b/misc.c
index 1ca50d857c90a151ea8dad5630a67593ba732d81..680f9ff48521df346d8c6ad9cd8c1776e87c22ae 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -894,8 +894,10 @@ long I, VAL;
        } else {
                if (logfp)
                        IGNORE(fputs(INLINE+1, logfp));
-               else if (!isatty(0))
+               else if (!isatty(0)) {
+                       IGNORE(fputs("> ", stdout));
                        IGNORE(fputs(INLINE+1, stdout));
+               }
                LNLENG=0;
                for (I=1; I<=sizeof(INLINE) && INLINE[I]!=0; I++) {
                VAL=INLINE[I]+1;