From: Eric S. Raymond Date: Sat, 10 Jun 2017 09:35:35 +0000 (-0400) Subject: Unbreak the tests. X-Git-Tag: 1.1~458 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=4c5474121fb033a7d7048d2c65c0d9ddb2640c37;p=open-adventure.git Unbreak the tests. linenoise doesn't eco its prompt to stdout, which messed them up. --- diff --git a/misc.c b/misc.c index 0eae162..08fdcfa 100644 --- a/misc.c +++ b/misc.c @@ -730,6 +730,8 @@ bool MAPLIN(FILE *fp) * and is not changed thereafter unless the routines on this page choose * to do so. */ + if (!oldstyle && !isatty(1)) + fputs("> ", stdout); do { if (oldstyle) { IGNORE(fgets(rawbuf,sizeof(rawbuf)-1,fp));